0

嘿,我想知道如何将视图控制器链接到 TTLauncher 中的项目?

[self launcherItemWithTitle:@"Apple" image:@"bundle://safari_logo.png" URL://What to write here?]
4

1 回答 1

0

您将其链接到 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你要发射的那个在哪里

希望这可以帮助

于 2011-04-12T16:20:58.897 回答