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… Continue reading iPhone SDK convert hex color string to UIColor
Tag: objective-c
Mumbaikar iPhone App Now Available at the App Store
My first iPhone App Mumbaikar now available at the App store ! Please read my whole experience in “How we did our first iPhone App @flipmedia” 😉
Add UIActivityIndicatorView to UINavigationBar
For me it took sometime to figure out how to show activity indicator in the navigation bar. Later I found it was very simple. When you push a view to the navigation you get to play with navigationItem property on the view that is being pushed. In your viewWillAppear method you can add this code.… Continue reading Add UIActivityIndicatorView to UINavigationBar