UIModalTransitionStylePartialCurl half page

后端 未结 4 1348
陌清茗
陌清茗 2021-01-13 12:15

I\'m displaying an UIViewController by the following way:


MyViewController *myVc = [[MyViewController alloc] initWithNibName:@\"MyViewController\" bundle:ni         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 12:41

    MyViewController * myVc = [[MyViewController alloc] initWithNibName:nil bundle:nil];
    [UIView beginAnimations:@"flipPage" context:NULL];
    [UIView setAnimationDuration:2];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
    [self.view addSubview:myVc.view];
    [UIView commitAnimations];
    

提交回复
热议问题