ios - Reset background in UIPageViewController -


i have uipageviewcontroller displaying uiimageview.

i can swipe , displayed correctly: image 1

there "edit" button pushes viewcontroller on screen:

self.navigationcontroller!.pushviewcontroller(editpictureviewcontroller, animated: true) 

when editpictureviewcontroller closed:

  • either clicking button
  • or calling done button navigationcontroller?.popviewcontrolleranimated(true))

the background of uipageviewcontroller not white anymore: it's "image 1" (the image displayed before editpictureviewcontroller pushed). if swipe see previous image, background not white. see here: image 2

what's problem background?

ok found issue... initiating uipageviewcontroller in viewwillappear instead of viewdidload :-/


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

sql server 2008 - split ssrs expression between 2 words -