【发布时间】:2011-03-21 19:25:17
【问题描述】:
你能告诉我当我在 TTTabItem 上标签时如何打开 UIViewController 吗?
URL 映射在应用委托中完成:
TTNavigator* navigator = [TTNavigator navigator];
navigator.supportsShakeToReload = YES;
navigator.persistenceMode = TTNavigatorPersistenceModeAll;
TTURLMap* map = navigator.URLMap;
[map from:@"*" toViewController:[TTWebController class]];
[map from:@"tt://mannschaft" toViewController:[MannschaftController class]];
然后在我的视图控制器中我成功添加了我的 TTTabSTrip:
CGRect applicationFrame = [UIScreen mainScreen].applicationFrame;
self.view = [[[UIView alloc] initWithFrame:applicationFrame] autorelease];
self.view.backgroundColor = TTSTYLEVAR(tabTintColor);
_tabBar = [[TTTabStrip alloc] initWithFrame:CGRectMake(0, 0, applicationFrame.size.width, 41)];
_tabBar.tabItems = [NSArray arrayWithObjects:[[[TTTabItem alloc] initWithTitle:@"Anno 1834"] autorelease], nil];
[self.view addSubview:_tabBar];
我现在如何使用 TTURLMap 在 TTTabStrip 下方打开另一个 uiviewcontroller?
谢谢,不要
【问题讨论】:
标签: iphone url uiviewcontroller three20