Position of navigation bar for modal view - iOS7

2019-01-07 04:41发布

In a navigation controller, you automatically get the correct colour and position of a navigation bar as expected.

like this

enter image description here

But in modal view, when you drag in a navigation bar, you can position it right at the top, which is too close to the carrier / battery info.

enter image description here

So you can drag it down, guess how far so it matches the position of the automatically created one, but then you have a colour discrepancy. I have tried changing status bar settings in IB, doesnt make a difference.

enter image description here

Is there a correct way to do overcome this, as in make a modal view look like the auto generated nav view.

Thanks

7条回答
贼婆χ
2楼-- · 2019-01-07 05:33

I turned "Use Autolayout" off and it worked for me.

查看更多
登录 后发表回答