I wanna to remove white inputAccessoryView of UIWebView when load contenteditable text in iO7.
在iO7中加载contenteditable文本时,我想删除UIWebView的白色inputAccessoryView。
I can remove it by UIWebBrowserView by the code:
我可以通过UIWebBrowserView的代码移除它:
-(id)inputAccessoryView{
return nil;
}
But this way use private-API and not pass validation
I also try something like this question but not work.
我也尝试过类似这样的问题,但是不行。
Is there any better way? Thanks!
有更好的办法吗?谢谢!
1 个解决方案
#1
1
See my answer here. Our app uses this method and is in the store.
看到我的答案。我们的app使用这个方法,在商店里。
I dynamically create a class that is a subclass of UIWebDocumentView that has an implementation of inputAccessoryView
which returns nil.
我动态地创建了一个类,它是UIWebDocumentView的子类,具有inputAccessoryView的实现,返回nil。
#1
1
See my answer here. Our app uses this method and is in the store.
看到我的答案。我们的app使用这个方法,在商店里。
I dynamically create a class that is a subclass of UIWebDocumentView that has an implementation of inputAccessoryView
which returns nil.
我动态地创建了一个类,它是UIWebDocumentView的子类,具有inputAccessoryView的实现,返回nil。