How can I use UIModalTransitionStylePartialCurl on a UIView that does NOT take up the whole screen?

后端 未结 8 1075
陌清茗
陌清茗 2021-01-30 11:06

In Apple\'s official Maps app for the iPhone, there is a small \'page curl\' button in the lower-right corner. When you press it, the map itself peels back to reveal some optio

8条回答
  •  梦谈多话
    2021-01-30 11:47

    I ran into this problem as well. For me the frame of the parent view wasn't mangled until the modal view was dismissed. So I cached the frame before dismissing then restored it right after.

    CGRect frame = controllerWithModal.view.frame;
    [controllerWithModal dismissModalViewControllerAnimated:YES];   
    controllerWithModal.view.frame = frame;
    

提交回复
热议问题