I am looking for a way on the iPhone, due to a custom 'loading' subview, to have a subview cover the keyboard without dismissing the keyboard. Right now when the subview loads, the keyboard is still topmost. Any ideas?
@interface UIApplication (Util)
- (void)addSubViewOnFrontWindow:(UIView *)view;
@end
@implementation UIApplication (Util)
- (void)addSubViewOnFrontWindow:(UIView *)view {
int count = [self.windows count];
UIWindow *w = [self.windows objectAtIndex:count - 1];
[w addSubview:view];
}
@end
UIApplication *app = [UIApplication sharedApplication];
[app addSubViewOnFrontWindow:_loadingView];