How to get UIToolbar font according to UINavigation Controller?

Using the following message , I was able to add UILabel to the UIToolbar, however it looks crap. Does anyone know how to get the text size / color / shadow according to the title for the UINavigationController?

Navigation controller

alt text http://www.codingwithoutcomments.com/uploads/Picture1.png

UIToolbar with UILabel

alt text http://www.codingwithoutcomments.com/uploads/Picture2.png

What steps need to be taken to be consistent?

+4
source share
3 answers

Can you also add a shadow?

itemLabel.shadowColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5]; itemLabel.shadowOffset = CGSizeMake(0, -1.0); 
+7
source

Obviously, the question is about the iPhone, but in case anyone is interested, here are the numbers for the iPad:

  titleLabel.font = [UIFont boldSystemFontOfSize:20.0]; titleLabel.shadowOffset = CGSizeMake(0, 1); titleLabel.shadowColor = [UIColor colorWithWhite:1.f alpha:.5f]; titleLabel.textColor = [UIColor colorWithRed:113.f/255.f green:120.f/255.f blue:127.f/255.f alpha:1.f]; titleLabel.backgroundColor = [UIColor clearColor]; titleLabel.text = @"Title"; 
+3
source
 UILabel * itemLabel = [[UILabel alloc] initWithFrame:rectArea]; itemLabel.text = @"Item"; itemLabel.textColor = [UIColor whiteColor]; itemLabel.font = [UIFont boldSystemFontOfSize:22.0]; 
0
source

All Articles