मैं निम्नलिखित कोड कोशिश कर रहा हूँ:मैं UIViewController के नेविगेशन नियंत्रक शीर्षक को सही तरीके से कैसे सेट करूं?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
Thing *sub = [[subscriptions objectAtIndex:indexPath.row] retain];
StoriesViewController *thing = [[StoriesViewController alloc] initWithThing:sub];
thing.navigationController.title = sub.title;
[self.navigationController pushViewController:thing animated:YES];
[thing release];
[sub release];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
मैं इस बारे में सोचा है कि कैसे आप सही ढंग से नियंत्रक धकेलने के लिए शीर्षक सेट है। मैंने thing.title की कोशिश की हालांकि वह TabBarItem के शीर्षक को इसके बजाय सेट कर रहा था।
अधिक अच्छी तरह से यहाँ पर चर्चा की: http://stackoverflow.com/questions/2280710/iphone-setting-navigation-bar-title –