Wednesday, March 20, 2013

UINavigation Label


CGRect frame = CGRectMake(0, 0, 400, 44);
UILabel *label = [[[UILabel alloc] initWithFrame:frame] autorelease];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont [UIFont fontWithName:@"123Sans-Bold" size:12]];
label.textAlignment = UITextAlignmentCenter;
label.textColor = [UIColor whiteColor];
label.text = @"Sample custom Title With small Fonts ";
self.navigationItem.titleView = label;


label.font = [UIFont boldSystemFontOfSize:8.0];

No comments:

Post a Comment