Monday, September 23, 2013

DEtect if Keyboard is present on screen or not ....-- IOS

- (void) isKeyboardOnScreen
{
    BOOL isKeyboardShown = NO;
   
    NSArray *windows = [UIApplication sharedApplication].windows;
    if (windows.count > 1) {
        NSArray *wSubviews =  [windows[1]  subviews];
        NSLog(@"wSubviews..%@",wSubviews);
        isKeyboardShown = YES;
      
       

    }
   
     NSLog(@"isKeyboardShown...%d",isKeyboardShown);
}

No comments:

Post a Comment