func parentViewController() -> UIViewController? {
let n = next
while n != nil {
let controller = next?.next
if (controller is UIViewController) {
return controller as? UIViewController
}
}
return nil
}
swift3.0通过响应链获取当前试图的控制器
最新推荐文章于 2023-01-06 15:30:29 发布