Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)setTitle:(NSString *)title{
- if(![self.navigationController.navigationBar viewWithTag:1000]){
- UITitleLabel *lblTitleLabel = [UITitleLabel titleLabelWithTitle:title];
- lblTitleLabel.tag = 1000;
- [self.navigationController.navigationBar insertSubview:lblTitleLabel atIndex:2];
- }
- else{
- UITitleLabel *tt = (UITitleLabel*) [self.navigationController.navigationBar viewWithTag:1000];
- tt.text = title;
- }
- }
Add Comment
Please, Sign In to add comment