Skip to content

Instantly share code, notes, and snippets.

@codeswimmer
Created January 22, 2012 19:03
Show Gist options
  • Select an option

  • Save codeswimmer/1658276 to your computer and use it in GitHub Desktop.

Select an option

Save codeswimmer/1658276 to your computer and use it in GitHub Desktop.
iOS: How to determine if your view is currently on screen
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