TTNavigator three20 openURLAction

scu*_*cud 2 iphone sdk three20 ttnavigator

我是tri20的新手并试图通过TTNavigator类找到自己的方式.我尝试通过URL系统推送到新视图.所以我使用了openURL:animated:方法,它运行得很好,但它已被弃用了,我知道我应该使用openURLAction,但是它没有animated:参数.我错过了什么吗?

con*_*are 5

导航器现在使用TTURLActionapplyXXX方法:

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:UrlFor(@"foo/bar")] applyAnimated:YES]];
Run Code Online (Sandbox Code Playgroud)

这使得它可以更加可扩展,因为不必是^ 2构造函数.还有很多其他applyXXX方法,请查看此处此处的文档