ios - dynamically set navigation controller title -
i'm working core data, , part of app very similar default contacts app. there edit screen after contact in core data, , make title: [insert contact name here] s information". know can set title core data entity attribute doing: self.navigationcontroller.title = _athletesfullname; (property attribute under entity "athlete"). there way can
self.navigationcontroller.title = @"%@'s information",_athletesfullname; ?
try code:
self.navigationcontroller.navigationitem.title=[nsstring stringwithformat:@"%@ 's information",_athletesfullname];
Comments
Post a Comment