【发布时间】:2011-04-12 14:39:28
【问题描述】:
嘿,我想知道如何将视图控制器链接到 TTLauncher 中的项目?
[self launcherItemWithTitle:@"Apple" image:@"bundle://safari_logo.png" URL://What to write here?]
【问题讨论】:
标签: iphone sdk three20 launcher
嘿,我想知道如何将视图控制器链接到 TTLauncher 中的项目?
[self launcherItemWithTitle:@"Apple" image:@"bundle://safari_logo.png" URL://What to write here?]
【问题讨论】:
标签: iphone sdk three20 launcher
您将它链接到 TTURLMap 中的 URL,该 URL 链接到您想要的视图控制器。所以你会打电话给例如:
[self launcherItemWithTitle:@"Apple" image:@"bundle://safari_logo.png" URL:@"tt://apple"]
然后当你声明你的 TTURLMAP 时:
TTNavigator *navigator = [TTNavigator navigator];
[navigator.URLMap from:@"tt://apple" toViewController:[YourViewController class]];
YourViewController 是您要启动的位置
希望对你有帮助
【讨论】: