[英]iPhone SDK 4.0: Testing if view is displayed
using iPhone SDK 4.0, how does one determine if a UIViewController is currently in the viewDidAppear state (currently visible). 使用iPhone SDK 4.0,如何确定UIViewController当前是否处于viewDidAppear状态(当前可见)。 I could set a flag but was wondering if there is a better way.
我可以设置一个标志,但想知道是否有更好的方法。
Thanks. 谢谢。
Nope, setting a flag is the best way, as you never know if something is in front of it. 不会,设置标志是最好的方法,因为您永远不知道前面是否有东西。
Have fun! 玩得开心!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.