开发者

Xcode 4.2 iOS5 Storyboard reference is nil while trying to implement Page View Controller

开发者 https://www.devze.com 2023-04-12 12:48 出处:网络
While trying to implement the Default Page Based app in another Single View application, I tried everything, but self.storyboard in the class that extends UIViewController is always nil.

While trying to implement the Default Page Based app in another Single View application, I tried everything, but self.storyboard in the class that extends UIViewController is always nil.

Is there any tutorial I can follow?

  • Storyboard has the following: Login Screen (UIViewController) -> UITabBarController -> UITableViewController; on didSelectCell… I added 2 UIPageViewController that are identical to the ones in the page passed to the开发者_JAVA技巧 app, and the ModelController.h/m and did all the alterations needed to my knowledge.

  • self.storyboard in the RootViewController.m is always nil, and it ends up crashing my app.

P.S. I am a beginner, and I don't know how to get a reference of the storyboard object from my ViewController.m/h to the RootViewController.m/h.


I'm not too sure what you are trying to get at, but just use this project http://www.wannabegeek.com/?p=168

at the bottom of the page there is a github link which will allow you to download the whole project, no coding necessary.

and here's the github link just incase you couldn't see it

https://github.com/wannabegeek/PageViewController

0

精彩评论

暂无评论...
验证码 换一张
取 消