When I pop the new tableViewController from the initial screen of the iOS application (I click on the settings screen), the title in the UINavigationController is trimmed to the end of the animation:
This is the navigation bar in the middle of the animation, and just before the animation finishes, it looks like this:
After a moment, the title will correctly change to "Settings". It doesnβt matter, but you can imagine how much this worries a programmer who is a little prone to OCD! :)
Here is the code in the ViewController table where I set the title, nothing special:
- (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { self.title = @"Settings"; // Hide tabBar when pushed so you cannot switch from the Settings self.hidesBottomBarWhenPushed = YES; self.tableView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"bg.png"]]; } return self; }
source share