开发者

Most elegant way to access UINavigationController from pushed controllers

开发者 https://www.devze.com 2023-01-05 09:28 出处:网络
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 NavigationControlle

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

精彩评论

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