Created
January 22, 2012 19:03
-
-
Save codeswimmer/1658276 to your computer and use it in GitHub Desktop.
iOS: How to determine if your view is currently on screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From UIView: if (self.window)… // I'm on screen | |
| From UIViewController: if (self.view.window)… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment