I.Star
I.Star

Reputation: 15

How to create a dual page iOS app

How do I create a dual page iOS app? I want to toggle between pages through a UIPageViewController. When I selected "page based app" it provides me RootViewController and DataViewController and I got confused.

Please help? Also, what is modelcontroller.swift?

Upvotes: 1

Views: 61

Answers (2)

54 69 6D
54 69 6D

Reputation: 694

It depends on how you want your page to look. For example to set the page titles in the default page-based app, change the lines in ModelController.swift

// Create the data model.
var dateFormatter: NSDateFormatter = NSDateFormatter()
self.pageData = dateFormatter.monthSymbols().copy()

to

// Create the data model.
self.pageData = ["Title A", "Title I", "Page 1"]    // Your pages

Upvotes: 0

user6531429
user6531429

Reputation:

You can create the Dual page view controller by starting from single view controller app. Once done embed it in navigation controller or in tabbed view controller and create segue accordingly.

Upvotes: 2

Related Questions