how to remove prev next button from virtual keyboard IOS

后端 未结 4 543
独厮守ぢ
独厮守ぢ 2020-12-09 01:03

i have use a UIWebview in IOS 5. I try to set contenteditable=\"true\" to make uiwebview editable.

The screenshoot of my app is similar to an image in

4条回答
  •  被撕碎了的回忆
    2020-12-09 01:14

    Remove the empty area.

    - (void)removeBar {
        // Locate non-UIWindow.
        UIWindow *keyboardWindow = nil;
        for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) {
            if (![[testWindow class] isEqual:[UIWindow class]]) {
                keyboardWindow = testWindow;
                break;
            }
        }
    
        // Locate UIWebFormView
        for (UIView *possibleFormView in [keyboardWindow subviews]) {
            if ([[possibleFormView description] hasPrefix:@"= 5.0) {
                            webScroll = [[self webView] scrollView];
                        } else {
                            webScroll = [[[self webView] subviews] lastObject];
                        }
                        CGRect newFrame = webScroll.frame;
                        newFrame.size.height += peripheralView.frame.size.height;
                        webScroll.frame = newFrame;
    
                        // remove the form accessory bar
                        [peripheralView removeFromSuperview];
                    }
                    // hides the thin grey line used to adorn the bar (iOS 6)
                    if ([[peripheralView description] hasPrefix:@"

提交回复
热议问题