33

iOS轻松获取当前控制器的正确方式

 5 years ago
source link: http://www.cocoachina.com/ios/20180919/24945.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在日常开发中,经常会有需要获取当前 window rootViewController 当前 ViewController 等需求。可通过文中方法轻松获取到他们,原理也相当简单。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK