func parentViewController() -> UIViewController? {
var n = self.next
while n != nil {
if (n is UIViewController) {
return n as? UIViewController
}
n = n?.next
}
return nil
}
网友评论