iphone - UIPageViewController backside view -
this question has reply here:
how alter shadow background white other colors 3 answersi have set working uipageviewcontroller in app. want customize backside of page shown when user turning page. default behaviour right showing frontview @ 40% or so. possible set in way backside view specify?
edit: maybe should clarify want backside of view same view. illustration solid reddish color. same question has been asked here uipageviewcontroller : how alter shadow background white other colors : ios
this code utilize in spine position method. in comments of setviewcontrollers method read:
for transition style 'uipageviewcontrollertransitionstylepagecurl', if 'doublesided' 'yes' , spine location not 'uipageviewcontrollerspinelocationmid', 2 view controllers must included, latter view controller used back.
so if do:
-(uipageviewcontrollerspinelocation)pageviewcontroller: (uipageviewcontroller *)pageviewcontroller spinelocationforinterfaceorientation (uiinterfaceorientation)orientation { uiviewcontroller *currentviewcontroller = self.pageviewcontroller.viewcontrollers[0]; uiviewcontroller *backsideviewcontroller = [[backsideviewcontroller alloc]init]; self.pageviewcontroller.doublesided = yes; nsarray *viewcontrollers = @[currentviewcontroller,backsideviewcontroller]; [self.pageviewcontroller setviewcontrollers:viewcontrollers direction:uipageviewcontrollernavigationdirectionreverse animated:yes completion:null]; homecoming uipageviewcontrollerspinelocationmax; }
i error: number of provided view controllers (2) doesn't match number required (1) requested spine location (uipageviewcontrollerspinelocationmax)
please go through link.
apple site class reference
sample code uipageviewcontroller.
iphone objective-c uipageviewcontroller
No comments:
Post a Comment