iOS 获取屏幕最顶端的ViewController

+(UIViewController*) topMostController
{UIViewController*topController =[UIApplication sharedApplication].keyWindow.rootViewController;while(topController.presentedViewController){
        topController = topController.presentedViewController;}return topController;}

This Code are work fine.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*