Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9169169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:48:28+00:00 2026-06-17T15:48:28+00:00

Another how to remove the pre, next, done button -question you may think .

  • 0

Another “how to remove the pre, next, done button” -question you may think. Not really actually. I’ve done some rather thorough research on this and tried out different approaches but no method or solution really seems to do it right. All workaround (that’s what they are) mentioned and shown below are basically the same approach, replace content of the MainViewController.m file. I’m well aware of that more or less all these proposed solutions are somewhat hacky but still, there should be someone out there who has tackled this issue with a little bit of grace and deep thought, or someone who knows C well and can propose a more solid solution.

Allow me to illustrate my point by making references to some proposed solutions:

Solution 1

In iOS6, this results in the form assistant bar border still being present and the keyboard acting as if the form assistant bar were still there.

Solution 2

Someone proposed a solution to the above but I simply cannot get it to work. The answerer has made several edits and comments to the post which only make harder to grasp what to do where. I’ve tried all variations of his solution but I always end up getting a critical error and the project simply wont compile.

Solution 3

Not a C programmer (that’s why I use phonegap) so can’t get this to work properly. Don’t know what to add where.

Solution 4

Don’t know where and how to implement this so haven’t tried it. Where should I register to receive the keyboardDidShow notification? Where should I add the function?

Conclusion

According to my research, if you will, no one has yet proposed a proper solution to this. So has anyone successfully removed the form assistant without any of the above mentioned side effects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:48:29+00:00Added an answer on June 17, 2026 at 3:48 pm

    Here you go, I’m using this in an app I’m currently developing. Fingers crossed that it gets to the app store, although going on other ‘hacks’ that make it to the store this is no worse than others, so should stand a fair chance.

    No annoying side effects with this method – it cleanly removes the bar by making sure it’s never created in the first place. Ta da!

    Credit goes to https://gist.github.com/2048571, this is his code with a small fix.

    #import <objc/runtime.h>
    #import <UIKit/UIKit.h>
    
    @interface UIWebView (HackishAccessoryHiding)
    @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView;
    @end
    
    @implementation UIWebView (HackishAccessoryHiding)
    
    static const char * const hackishFixClassName = "UIWebBrowserViewMinusAccessoryView";
    static Class hackishFixClass = Nil;
    
    - (UIView *)hackishlyFoundBrowserView {
        UIScrollView *scrollView = self.scrollView;
    
        UIView *browserView = nil;
        for (UIView *subview in scrollView.subviews) {
            if ([NSStringFromClass([subview class]) hasPrefix:@"UIWebBrowserView"]) {
                browserView = subview;
                break;
            }
        }
        return browserView;
    }
    
    - (id)methodReturningNil {
        return nil;
    }
    
    - (void)ensureHackishSubclassExistsOfBrowserViewClass:(Class)browserViewClass {
        if (!hackishFixClass) {
            Class newClass = objc_allocateClassPair(browserViewClass, hackishFixClassName, 0);
            IMP nilImp = [self methodForSelector:@selector(methodReturningNil)];
            class_addMethod(newClass, @selector(inputAccessoryView), nilImp, "@@:");
            objc_registerClassPair(newClass);
    
            hackishFixClass = newClass;
        }
    }
    
    - (BOOL) hackishlyHidesInputAccessoryView {
        UIView *browserView = [self hackishlyFoundBrowserView];
        return [browserView class] == hackishFixClass;
    }
    
    - (void) setHackishlyHidesInputAccessoryView:(BOOL)value {
        UIView *browserView = [self hackishlyFoundBrowserView];
        if (browserView == nil) {
            return;
        }
        [self ensureHackishSubclassExistsOfBrowserViewClass:[browserView class]];
    
        if (value) {
            object_setClass(browserView, hackishFixClass);
        }
        else {
            Class normalClass = objc_getClass("UIWebBrowserView");
            object_setClass(browserView, normalClass);
        }
        [browserView reloadInputViews];
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to remove the cookies of another site from users on my site.
File: /home/USER/DIR/a http://www.here.is.a.hyper.link.net/ /home/USER/DIR/b http://www.here.is.another.hyper.link.net/ Need to remove all the odd lines in this
another newbie-question regarding rails and bootstrap. I am using something like this: <div class=tabbable
I want to have a C pre-preprocessor which is filtering some #define statements from
I recently noticed that my installer (VS 2008) does not remove the DLLs during
I want to understand how the dynamic proxy stub implementation is actually done behind
I want to be able to remove another application as part of the install
This is specifically related to the accepted answer of another question I asked .
I have a remote actor (client) which is registering with another remote actor (server)
I need to convert a string to another which has removed anything before the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.