0

I found a nice VIdeo Tutorial for UIPageViewController in swift, and it's working nice. In my app, i'm trying to create a pageviewcontroller from the middle of the app, not from the beginning. I couldn't find the storyboard ID for the pageviewcontroller and viewcontroller, which is essential in the coding. How can I solve this?

Identity inspector

Mohammed Janish
  • 207
  • 4
  • 17
  • I have updated the question. This is the identity inspector of the xib i prefer to start the pageviewcontroller – Mohammed Janish Sep 16 '15 at 12:52
  • It's hard to understand but if your asking what i think then take look at this on how to load a standalone viewcontroller from a storyboard. http://stackoverflow.com/questions/13867565/what-is-a-storyboard-id-and-how-can-i-use-this – BooRanger Sep 16 '15 at 12:57
  • I understand, it's almost what i'm asking. But how can I confirm a storyboard declared in AppDelegate and and a viewcontroller created somewhere in the app is connected? – Mohammed Janish Sep 17 '15 at 03:51
  • That question refers to instantiate a viewcontroller with a specific storyboard id. My problem is, I am unable to set the storyboard id from a new xib other than the Main.Storyboard – Mohammed Janish Sep 17 '15 at 04:53
  • 1
    So you have a MyViewController.xib, you have to init it with [[UIViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; then present it or push it on to the navigation controller. Swift: init(nibName: "MyViewController", bundle: nil)) – BooRanger Sep 17 '15 at 07:43
  • @BooRanger Could you elaborate it. Where i have to initialise, and how it can be completed. Please write it as an answer. – Mohammed Janish Sep 17 '15 at 08:40
  • I am creating a page view. So, i've to set storyboard id for another viewcontroller and pageviewcontroller. – Mohammed Janish Sep 17 '15 at 08:57

0 Answers0