Advertisement
Guest User

Untitled

a guest
May 30th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. if(!self.superview){
  2. NSEnumerator *frontToBackWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator];
  3.  
  4. for (UIWindow *window in frontToBackWindows) {
  5. if (window.windowLevel == UIWindowLevelNormal) {
  6. [window addSubview:self];
  7.  
  8. break;
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement