topgun
topgun

Reputation: 2573

Navigation bar and UIWebview

I am having some slight issue and trying to fix it but can't find the easiest answer towards it. I have a navigation bar, which is taking top pixels away, and hence the webview content last 44 px if I am not wrong goes under the bounce and hides the content. Hence the problem is that I have a submit button, and since it needs to be clicked, it goes under the bounce condition and doesn't let me select the button. Any quick solution to this problem will be appreciate.

Thanks

Upvotes: 1

Views: 1772

Answers (2)

LocoMike
LocoMike

Reputation: 5656

Make sure your UIWebView has the autoresizingMask set to be flexible in height and width. You can do that in interface builder or in code.

Upvotes: 1

Léo Natan
Léo Natan

Reputation: 57040

You can set the bottom content insets to 44. But it seems your view is not put correctly (web view size does not take navigation bar into account, web view is not resized properly, etc.) I would fix that instead of patching with the insets fix.

Upvotes: 0

Related Questions