Whose view is not in the window
作者:
搬码小能手 | 来源:发表于
2022-09-07 17:05 被阅读0次UIViewController *topRootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
while (topRootViewController.presentedViewController)
{
topRootViewController = topRootViewController.presentedViewController;
}
//[topRootViewController presentViewController:yourController animated:YES completion:nil];
//or
[topRootViewController myMethod];
本文标题:Whose view is not in the window
本文链接:https://www.haomeiwen.com/subject/npbgnrtx.html
网友评论