在 StoryBoard 中,我们可以如下进行可视化设置

我们如何使用.Xib/nibfile 做同样的事情?
[self presentViewController:self.infoController animated:YES completion:nil];
上面的代码只是使用模态样式,但是如何将过渡样式设置为部分卷曲。
在 StoryBoard 中,我们可以如下进行可视化设置

我们如何使用.Xib/nibfile 做同样的事情?
[self presentViewController:self.infoController animated:YES completion:nil];
上面的代码只是使用模态样式,但是如何将过渡样式设置为部分卷曲。
您可以使用以下代码执行此操作:
    #import "InfoController.h"
   - (IBAction)goToSecond:(id)sender { 
         InfoController *vc = [[InfoController alloc] initWithNibName:@"InfoController" bundle:nil];
         vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
         [self presentViewController:vc animated:YES completion:^{
           //completion code here
         }];
     }