すべてのビューのベースとしてappdelegateでUINavigationControllerを使用しており、TTTableViewControllerで始まる別のフローにTTNavgitorを使用しています。
何らかの理由でTTNavigatorを使用すると、2つの問題が発生します。
- 行の1つを選択した後、ロードされたビューコントローラに戻るボタンがありません
- テーブルの行を選択すると、トランジションはアニメーション化されません
私はThree20の例の基礎を使用しています:
- (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;
}
なぜ私がこれらの問題を抱えているのか考えている人はいますか?そして、どうすればすべてのコードを書き直さずにこれをすばやく解決できますか?