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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -