werbary
werbary

Reputation: 1095

Interface builder iOS 5 compability trouble

I have unknown before problem with IB. I'm creating navigation bar in my IB, but if y of it equals 20 it looks good at the iOS 4, but on the iOS 5 - not.

Screenshots. Interface Builder

IB

iOS 5 iOS 5

iOS 4.3.3 iOS 4.3.3

Upvotes: 1

Views: 213

Answers (3)

Webber Lai
Webber Lai

Reputation: 2022

In the project-Info.plist add Status bar is initially hidden = YES

But the view's Y still set 20 , not 0

Upvotes: 0

0xDE4E15B
0xDE4E15B

Reputation: 1294

Seems, that the view in iOS 5 does not have a Status Bar enabled. Enable a Status Bar in the view and the problem will be solved!

Upvotes: 1

dmarges
dmarges

Reputation: 361

Why are you setting the y value of the navigation bar to 20? Users expect to see the nav bar at the very top. Having a space between the top between the navigation bar is jarring.

If you set the y to 0 then it should be flush with the top across iOS 4.3 and 5.0

Upvotes: 0

Related Questions