开发者

TTNavigator three20 openURLAction

开发者 https://www.devze.com 2022-12-25 19:08 出处:网络
I\'m n开发者_StackOverflow社区ew to three20 and trying to find my way through the TTNavigator class.

I'm n开发者_StackOverflow社区ew to three20 and trying to find my way through the TTNavigator class. I try to push to a new view via the URL system. So I used openURL: animated: method which works just fine, but it's deprecated, and I know that I should use openURLAction instead, but this has no animated: parameter. Am I missing something?


The navigator now uses TTURLAction and the applyXXX method:

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

This lets it be much more scaleable in that there doesn't have to be a n^2 constructors. There are many other applyXXX methods, check out the docs here and here

0

精彩评论

暂无评论...
验证码 换一张
取 消