ios - how to give Page View Controller a "Cover Vertical" transition style -
with navigation view controller, can give "cover vertical" transition style animation. however, having trouble replicating page view controller. options given in story board "scroll" , "page curl". there way programmatically?
it looks little bit tricky should work :
create uiviewcontroller container controller. add uipagecontrol ever want. programmatically add uinavigationviewcontroller child of container , add view view hierarchy. can use instantiateviewcontrollerwithidentifier: of main storyboard , don't forget set constraints if you're using autolayout. use delegate between container , uinavigationviewcontroller or parentviewcontroller property of uinavigationviewcontroller change uipagecontrol when user navigates in uinavigationviewcontroller.
uipageviewcontroller 1 single thing. of time prefer using custom container controller rather using it.
Comments
Post a Comment