This function will help you to convert hex color string to UIColor Class.h + (UIColor *) colorWithHexString: (NSString *) stringToConvert; Class.m + (UIColor *) colorWithHexString: (NSString *) stringToConvert{ NSString *cString = [[stringToConvert stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] uppercaseString]; // String should be 6 or 8 characters if ([cString length] < 6) return [UIColor blackColor]; // strip 0X if [...]
Source: http://feedproxy.google.com/~r/hmimthiaz/~3/Mfcnd9wTOBs/iphone-sdk-convert-hex-color-string-to-uicolor.php
buy iphone 4 iphone 4 review iphone new iphone iphone 4g iphones iphone apps iphone 3g iphone 2 jailbreak iphone buy iphone 4 iphone 4 review
No comments:
Post a Comment