1

I have a UIWebView build in Xcode 5, I load a page with a form, but the bottom of the screen is cut, if I enter a text in the form and press "done" the bottom of the screen appears again but the top of the screen is cut now.

I'm work with xcode5, builds for iOs 6 and later and view as iOs7 and later.

The problem happens only with iPhone 4 -iOS6 but it work fine with iPhone 4&5 with iOS7.

Image 1: Bottom screen is missing

Then I enter text in the first field and press "done" and....

Image 2: Top screen is missing now (and bottom is ok)

Loukas
  • 588
  • 1
  • 5
  • 21
Seba
  • 11
  • 2
  • 1
    Please post a screenshot of the problem. – Leo Natan Dec 15 '13 at 02:39
  • OK,i post 2 images... thanks – Seba Dec 15 '13 at 06:50
  • The iOS 6 screen is effectively 20 pixels shorter than the iOS 7 screen, since iOS 7 makes the status bar a part of your screen while iOS 6 does not. There are a number of different ways to deal with this, depending on your particular design. – Hot Licks Jan 28 '14 at 12:43

1 Answers1

0

In your .xib file I assume that you do not use Autolayout. Navigate to the size inspector tab (the one with the ruler) and set the Delta Y property to -20.

See this answer here for screenshots regarding these settings.

Community
  • 1
  • 1
Nikos M.
  • 13,429
  • 4
  • 46
  • 60
  • Thanks Nikos, i made the change and the bottom problem was fixed.... but now the top of the screen missed (as in the image 2), before and after I enter text... what do you think is the problem? Thanks Again!! – Seba Dec 16 '13 at 02:32