-4
这段代码是我从朋友处得到的。但我不知道它是如何工作的。我希望这里有人能帮我解释这段代码。因为这段代码,我会以我的老师讲解很快chek目前modaly或phus,但idont知道什么?
private func isModal() -> Bool {
if self.presentingViewController != nil {
return true
} else if self.navigationController?.presentingViewController?.presentedViewController == self.navigationController {
return true
} else if self.tabBarController?.presentingViewController is UITabBarController {
return true
}
return false
}
感谢:d
你的朋友复制从http://stackoverflow.com/a/27301207/1187415代码。 –
要求你的“朋友”向你解释这段代码......并告诉我你问他提供给你什么? – vivek
@MartinR ..是的..这是真的..嗨嗨,但她不是太明智,不适用此代码:D – user7845351