1

As iOS7 and xcode 5 is out, I am assuming we can talk about them. Today I upgraded to XCode 5 and suddenly on my mapView.xib I see a white bar below. I did not touch the xib file, what exactly is going on here and how I can fix it.

View from Interface Builder

user1191140
  • 1,359
  • 3
  • 15
  • 34
  • That's because of a transparent status bar, I guess. – Fahri Azimov Sep 19 '13 at 06:33
  • The view is still messed up with the white bar but I got the app working properly by suggestion provided in post http://stackoverflow.com/questions/18294872/ios-7-status-bar-back-to-ios-6-style – user1191140 Sep 19 '13 at 07:00

3 Answers3

1

Don't worry. You'll have lots of fun re-adjusting your layouts. Some of the components dimensions changed drastically and probably you'll need to re-adjust windows and UIViews too.

John Doe
  • 385
  • 3
  • 10
1

This is because of structure of iOS 7, To resolve this issue select your background UIImageView in xib and apply following Autoresizing mask

enter image description here

After that create new imageSet with name "iOS7bgImg" and add device support [iPhone & iPhone 4-inch] and add respective images in a boxes with following resolutions.

320 * 480

640 * 960

640 * 1136

enter image description here

create a IBOutlet of backgroundImage view

Now check programmatically

if(iOS 7) {

[Setup new image in your background]

}

That's it solve.

imDeveloper
  • 776
  • 1
  • 6
  • 16
0

Open the xib and set the frame of the view of this view controller to the screen frame. In iOS7 the status bar is translucent and your view also is behind it. Therefore your view has to be 20 px taller to fill the screen.

dasdom
  • 13,539
  • 2
  • 41
  • 53