What is the best way to implement a UINavigationBar that has a custom background and a custom title font, for both iOS4 and iOS5?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Override
drawRectin a customUINavigationBarclass:Then, in the class that uses this navigation bar, run
navigationBar.titleView = desiredTitleLabel. To customize the font of this label, trydesiredTitleLabel.font = [UIFont fontWithName:@"name" size:22.0].You can then customize the text color, shadow, etc. of the shadow.