4

I've just created a storyboard with few table controllers and one view controller. Everything works fine until my app push the view controller: it's shown completely black. I can add map view, image view or whatever, or even nothing (a complete empty view controller), but it's always shown black.

I push it using the the navigation [self.navigationController pushViewController] code line.

This is not happening with table controllers, just with view controllers.

Any suggestion?

I'm using Xcode 4.3.2 4E2002.

Thanks in advance,

Samuel

4

1 回答 1

3

您是否正确定义了故事板?如果您未能正确初始化情节提要并从情节提要中实例化控制器,则可能会发生此行为。IE,你需要创建一个 UIStoryboard 对象并且需要通过调用来实例化你的控制器 [storyboardObject instantiateViewControllerWithIdentifier: @"controllerName"];......在这里查看线程:http: //mobile.tutsplus.com/tutorials/iphone/ios-5-sdk-storyboards

于 2012-04-26T11:37:13.817 回答