Рубрики: Apple, iPad, iPhone, Mac OS X, OOP on Feb.09, 2010
Many people could not find this solution! It’s really very simple solution and it does not contain any private methods and functions. It’s based on the drawRect method and the simple manipulation with the title. If the title is specified, then the text of title displays, but if not, then displays the image.
Теги: Apple, iPad, iPhone, UIKit, UINavigationBar, Кодинг
Рубрики: Apple, iPhone on Dec.09, 2009
Change color for UINavigationBar 1[[controller navigationBar] setTintColor:[UIColor colorWithRed:0.36 green:0.09 blue:0.39 alpha:1.00]]; Set custom title for UINavigationBar 123456789CGRect frame = CGRectMake(0, 0, 400, 44); UILabel *label = [[[UILabel alloc] initWithFrame:frame] autorelease]; label.backgroundColor = [UIColor clearColor]; label.font = [UIFont boldSystemFontOfSize:20.0]; [...]
Теги: Apple, iPhone, objective-c, UIKit, UINavigationBar