Find new way to hide default keyboard toolbar #35
Comments
@cjwirth I was wondering about this too, this could be a blocker for our imminent release as we may get rejected because of it. Have you considered whether an "align toolbar top to UIWebView bottom" NSAutolayout constraint and bringSubviewsToFront could work? |
@cjwirth Working on a solution ;) |
@cjwirth So I tried a bunch of solutions and failed with everything including bringSubviewsToFront etc..I don't have an easy answer |
Yep, that's why I settled with this solution in the first place -- I couldn't find anything else, and it seemed to be a pretty common technique online. I'm not too concerned with being able to overwrite the It might work to just reference |
we have used @"UIWeb" instead of @"UIWebBrowserView", also been rejected... |
Aaah... thanks for the update. I was afraid something like that would happen 😣 |
any new update? |
Not yet. I don't know of any solution other than maybe just switching it to I'm following ionic-team/ionic-plugin-keyboard#179 to see what happens, and I'll probably do what they end up doing. |
i find a solution on https://news.ycombinator.com/item?id=11310683 static NSString browserViewClassName = Obfuscate.U.I.W.e.b.B.r.o.w.s.e.r.V.i.e.w; update:also been rejected... |
I'm at WWDC right now, and I went to the labs to ask the Apple engineers about this. It doesn't seem like a very widely-known problem, because I ended up talking to 3 different engineers, and nobody knew about it. I got the impression that there is really no reason that you can't hide or customize the toolbar other than "we never thought of that use case." However, I did report the radar number I filed to two of them, and so maybe, just maybe, they'll give us public access to the input accessory view (at least in WKWebView -- UIWebView is pretty much deprecated at this point... so I'll have to make that update as well) In the end, the Apple engineers couldn't come up with a viable workaround either. But they have nothing to do with App Review, so they couldn't comment about anything there. |
I think I'm just going to change it to use the As for right now, I'm going to close the issue, because there's not a whole lot I can do right now. But just because I'm closing it doesn't mean I'm forgetting about it! |
After dividing UIWebBrowserView in parts while iterating in subviews, resolved the issue and prevented it from getting rejected....? |
The relatively common technique of hiding UIWebView's input accessory view that we are using in CJWWebView+HackishAccessoryHiding.m is most definitely a horrible piece of code. Not only that but recently it has been getting apps rejected from the app store which is an outcome nobody wants.
Look into seeing if there is a better way to hide and/or cover up the input accessory view. Maybe this means upgrading to WKWebView, I don't really know.
This is a bad, brittle, dangerous piece of code, and I would really like to get it out of the codebase.
The text was updated successfully, but these errors were encountered: