【问题标题】:TTLauncherView url to view controllers? - iPhone SDKTTLauncherView url 来查看控制器? - iPhone SDK
【发布时间】:2011-04-12 14:39:28
【问题描述】:

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

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

【问题讨论】:

    标签: iphone sdk three20 launcher


    【解决方案1】:

    您将它链接到 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 是您要启动的位置

    希望对你有帮助

    【讨论】:

    • 对不起,没用。我收到两个错误和一个警告。基本上所有添加的行。
    • 帮助?这是什么?跟我想要的有关系吗? [链接]stackoverflow.com/questions/3934075/…
    • 警告:未使用的变量“导航器”。错误:在 '[' 标记之前应为 ':'。错误:未声明“导航器”(在此函数中首次使用)。
    • 啊,第一行的导航器拼写错误。我已经修好了。我只是徒手打字,我无法编译:)
    猜你喜欢
    • 1970-01-01
    • 2014-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多