gpt4 book ai didi

iphone - TTNavigator Three20 openURLAction

转载 作者:行者123 更新时间:2023-12-03 20:36:44 27 4
gpt4 key购买 nike

我是 Three20 的新手,正在尝试通过 TTNavigator 类(class)找到自己的方法。我尝试通过 URL 系统推送到新 View 。所以我使用了 openURL:animated: 方法,它工作得很好,但它已被弃用,我知道我应该使用 openURLAction 来代替,但它没有animated: 参数。我错过了什么吗?

最佳答案

导航器现在使用 TTURLActionapplyXXX 方法:

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:UrlFor(@"foo/bar")] applyAnimated:YES]];

这使得它更具可扩展性,因为不必有 n^2 构造函数。还有许多其他 applyXXX 方法,请查看文档 herehere

关于iphone - TTNavigator Three20 openURLAction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2594785/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com