0

我使用 XCode 5 在情节提要中添加了一个 TableViewController 并添加了 tableviewcells。但是,当我在模拟器中运行它时,表格视图是从屏幕的最顶部边缘开始绘制的,与状态栏重叠。状态栏应该先出现,然后是它下面的表格视图。

有没有我错过的设置?

4

1 回答 1

2

I recommend you read the Apple iOS 7 transitioning guide (link): Updating the UI > Bars and Buttons which discusses the new translucent status bar and how to change it.

Quote from the beta documentation:

In iOS 7, you can control the style of the status bar from an individual view controller and change it while the app runs. If you prefer to opt out of this behavior and set the status bar style by using the UIApplicationstatusBarStyle method, add the UIViewControllerBasedStatusBarAppearance key to an app’s Info.plist file and give it the value NO.

于 2013-08-06T14:30:18.760 回答