Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!self.superview){
- NSEnumerator *frontToBackWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator];
- for (UIWindow *window in frontToBackWindows) {
- if (window.windowLevel == UIWindowLevelNormal) {
- [window addSubview:self];
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement