funcgettopvc()->UIViewController?{
vartopvc =self.window?.rootViewController
while((topvc?.presentedViewController) !=nil){
topvc = topvc?.presentedViewController
}
returntopvc
}
funcgettopvc()->UIViewController?{
vartopvc =self.window?.rootViewController
while((topvc?.presentedViewController) !=nil){
topvc = topvc?.presentedViewController
}
returntopvc
}
本文标题:获取顶部viewcontroller
本文链接:https://www.haomeiwen.com/subject/qqtpjttx.html
网友评论