I'm working with core data, and part of my app is very very similar to the default contacts app. There is an edit screen after a contact is in core data, and I would like to make the title: [insert contact name here] s information". I know I can set the title to just the core data entity attribute by doing: self.navigationController.title = _athletesFullName; (property for attribute under the entity "Athlete"). Is there any way I can do something like
self.navigationController.title = @"%@'s information",_athletesFullName; ?
try this code:
self.navigationController.navigationItem.title=[NSString stringWithFormat:@"%@ 's information",_athletesFullName];
self.navigationItem setTiltle:
is the normal way. The navigationItem is added by interface builder is you embed your viewcontroller in a navigationController.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With