简体   繁体   中英

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). 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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM