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

后端 未结 8 1078
陌清茗
陌清茗 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:48

    Me too had this problem,but i solved it..(dont know its the right way,but its working)

    I wanted to had an imageview inside a scrollview,and when the user taps a button inside that scroll view i wanted to curl-up the scroll view and show a tableview in that place. So i placed a tableview behind scrollview and initialy set it to hidden.when the user taps button i did

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:frontView cache:YES];
    [UIView commitAnimations];
    

    after that removed frontview from view. Hope that helps..

提交回复
热议问题