How to get a UIColor from an hex value in Monotouch?
相关问题
- System.IO.MemoryMappedFiles on MonoTouch?
- Is it possible to use NSUbiquitousKeyValueStore wi
- Monotouch PInvoke System.EntryPointNotFoundExcepti
- MonoTouch.Dialog: Dismissing a Keyboard
- Gradient as a Buttons BorderColor?
相关文章
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- How to get a CGImageRef from Context-Drawn Images?
- How to use native C++ libraries in Mono for Androi
- UIAppearance's “when not contained in”
- UTF-16 safe substring in C# .NET
- How to programmatically select a row in UITableVie
- Different StoryBoard for each screen size swift
- Get control's dimensions in CustomRenderer (Xa
As an option, for example
xamarin.ios uicolor colorhelper
Maybe this helps you, if you are using Xamarin.Forms:
Here one that lets you use a string like in css:
And here is the class:
I found some solutions for Objective C and none specifically for Monotouch I ended up developing an extension method based on the most popular solution for IOS:
and use it like this:
Update, it seems that as off Monotouch 5.4 UIColor does not have a parameterless constructor so use it like this: