ios8 UIModalTransitionStylePartialCurl doesn't work properly

前端 未结 3 801
野趣味
野趣味 2021-01-13 14:41

Under ios 8 using presentViewController modalTransitionStyle = UIModalTransitionStylePartialCurl disappear all page. I want it to work like ios 7.

3条回答
  •  一向
    一向 (楼主)
    2021-01-13 15:21

    Well, I am not proud of the fix I came up with but it works just fine and took me little time to do it.

    I managed to get a screen shot of the page curl at the stage that I wanted it to remain. It took a few tries but I got it. Then I took that image into Pixelmator and cropped it to just the page curl portion, made everything else transparent, smudged out the extraneous artifacts like the battery indicator, signal bars and time.

    I imported that image in 320, 640 and 960 widths then insert it at the top of my presented view at load time. It came out virtually perfect. I cannot tell the difference from what I had before. Works exactly as I wanted it.

提交回复
热议问题