objective c - How to add multiple view controller in a page controller -


i want add multiple view controller in page controller view controller can scroll left , right side in page view controller.

how this..?

you need implement uipageviewcontrollerdatasource. documentation found here:

https://developer.apple.com/library/ios/documentation/uikit/reference/uipageviewcontrollerdatasourceprotocolref/index.html

in the

pageviewcontroller:viewcontrollerbeforeviewcontroller: pageviewcontroller:viewcontrollerafterviewcontroller: 

methods return uiviewcontrollers want show.

with the

setviewcontrollers:direction:animated:completion: 

method uipageviewcontroller can set initial uiviewcontroller.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -