Cocoa touch 带TTNavigator的UINavigationController
我在appdelegate中使用UINavigationController作为所有视图的基础,并使用TTNavgitor作为从TTTableViewController开始的其他流 当我出于某种原因使用TTNavigator时,我有两个问题:Cocoa touch 带TTNavigator的UINavigationController,cocoa-touch,ttnavigator,Cocoa Touch,Ttnavigator,我在appdelegate中使用UINavigationController作为所有视图的基础,并使用TTNavgitor作为从TTTableViewController开始的其他流 当我出于某种原因使用TTNavigator时,我有两个问题: 选择其中一行后,加载的viewcontroller中没有“后退”按钮 在表中选择行时,不会设置转换动画 我使用的是三个20个示例的基础: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSB
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
self.title = @"Settings";
self.navigationItem.backBarButtonItem =
[[[UIBarButtonItem alloc] initWithTitle:@"Settings" style:UIBarButtonItemStyleBordered
target:nil action:nil] autorelease];
self.tableViewStyle = UITableViewStyleGrouped;
TTNavigator* navigator = [TTNavigator navigator];
navigator.supportsShakeToReload = YES;
navigator.persistenceMode = TTNavigatorPersistenceModeNone;
navigator.window = self.view.window;
TTURLMap* map = navigator.URLMap;
[map from:@"*" toViewController:[TTWebController class]];
[map from:@"tt://login" toViewController:[LoginController class]];
}
return self;
}
有人知道我为什么会有这些问题吗?我如何在不重写所有代码的情况下快速解决这个问题