简体   繁体   English

其他视图控制器中的viewController

[英]viewController in other view controller

when i try to call view controller view in to another view controller . 当我尝试将视图控制器视图调用到另一个视图控制器中时。 that time there delegate method like viewWillAppear: does not call . 那时有诸如viewWillAppear:的委托方法不调用。

any Suggestion? 有什么建议吗?

viewWillAppear: is only called by the framework when you use the built-in view controller transitions like presentModalViewController:animated: or pushViewController:animated: . 仅当您使用诸如presentModalViewController:animated:pushViewController:animated:类的内置视图控制器转换时,框架才会调用viewWillAppear: In other cases, you have to call viewWill/Did(Dis)Appear: yourself. 在其他情况下,您必须自己调用viewWill/Did(Dis)Appear:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何推送viewcontroller(视图控制器)? - How to push viewcontroller ( view controller )? 从子级Viewcontroller(Tab)传递到视图控制器 - Pass from a child Viewcontroller (Tab) to a view controller iPhone Modal View Controller在ViewController中单独存在 - iPhone Modal View Controller seperate in ViewController 当前模态视图控制器 - 与呈现viewcontroller交互 - Present modal view controller - interact with presenting viewcontroller 删除ViewController并移至下一个View Controller - Remove viewcontroller & move to next view controller 在另一个视图控制器的第一个视图中调用函数 - Calling function in the first view from the other viewcontroller multi viewcontroller:从子视图控制器调用根控制器的变量 - multi viewcontroller : call variable of root controller from a sub view controller 如何在 iOS 中的 ViewController 中的其他视图下方添加视图? - How to add View below other view in ViewController in iOS? 解雇邮件控制器后删除第二个ViewController的视图 - Removing a second viewcontroller's view after dissmissing mail controller 我在情节提要中的视图控制器将无法连接到viewcontroller.h文件或.m - My view controller in storyboard will not connect to the viewcontroller.h file or the .m
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM