I need to truncate the string content of back button of navigation controller. Let me explain clearly. I have large title in First view controller, same name is appearing in the next view controller while navigating in a back button. So much space is occupied by back button, I could not able to set the title clearly in next view controller.
How can I truncate the content of Back Button. Please help me out of this.
Thanks, Madan Mohan
You could try setting a custom back button for the first view controller, with the truncated title.
[self.navigationItem setTitle:@"A really long title"];
UIBarButtonItem * newBackButton = [[UIBarButtonItem alloc] initWithTitle:@"A really.." style:UIBarButtonItemStyleBordered target:nil action:nil];