Last active
August 29, 2015 14:07
-
-
Save Behinder/4afd22e65f9c6e1cdece to your computer and use it in GitHub Desktop.
Change size dynamically of Title Label ios7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.title = @"Your TiTle Text"; | |
UILabel* tlabel=[[UILabel alloc] initWithFrame:CGRectMake(0,0, 200, 40)]; | |
tlabel.text=self.navigationItem.title; | |
tlabel.textColor=[UIColor whiteColor]; | |
tlabel.font = [UIFont fontWithName:@"Helvetica-Bold" size: 30.0]; | |
tlabel.backgroundColor =[UIColor clearColor]; | |
tlabel.adjustsFontSizeToFitWidth=YES; | |
self.navigationItem.titleView=tlabel; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment