开发者

Most elegant way to access UINavigationController from pushed controllers

Say I have NavigationController->Root[Table View Controller subclass] So from didSelectRowAtIndexPath of my Table View Controller subclass I have to push another view controller to NavigationController.

What is the most elegant way to access NavigationController? Should I use have delegate of 开发者_如何学JAVANavigationController in my Table View Controller? Is this best approach if I have multiple tasks of accessing top object from hierarchy levels?


Just use self.navigationController.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜