i have used This code: self.navigationItem.title=@"My Name is ABC"; i want to change the font size as well as font Type's also so how can i change both with this code?
+2
A:
Sample Code :
CGRect frame = CGRectMake(0, 0, 400, 44);
UILabel *label = [[[UILabel alloc] initWithFrame:frame] autorelease];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont boldSystemFontOfSize:8.0];
label.textAlignment = UITextAlignmentCenter;
label.textColor = [UIColor whiteColor];
label.text = @"Sample custom Title With small Fonts ";
self.navigationItem.titleView = label;
mihirpmehta
2010-05-05 08:51:02
Thanks man!It's really very simple..
Ankit Vyas
2010-05-05 11:42:18