Ios 先于';initwithidentifer';?
我只是对这段代码中“BlurryModalSegue”所指的内容有点迷茫Ios 先于';initwithidentifer';?,ios,objective-c,cocoa-touch,Ios,Objective C,Cocoa Touch,我只是对这段代码中“BlurryModalSegue”所指的内容有点迷茫 - (void)presentSignupViewController { // Storyboard ID UIStoryboard *modalStoryboard = [UIStoryboard storyboardWithName:@"MyStoryboard" bundle:nil]; UINavigationController *navController = [modalStoryboard instant
- (void)presentSignupViewController {
// Storyboard ID
UIStoryboard *modalStoryboard = [UIStoryboard storyboardWithName:@"MyStoryboard" bundle:nil];
UINavigationController *navController = [modalStoryboard instantiateViewControllerWithIdentifier:@"MySignupViewController"];
MySignupViewController *controller = [navController viewControllers][0];
// Configure your custom view controller, e.g. setting delegate
controller.delegate = self;
// Show VC
navController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
BlurryModalSegue *segue = [[BlurryModalSegue alloc] initWithIdentifier:@"SignupScene" source:self destination:navController];
[segue perform];
}
它不是我的,我只是看看它是否适合我,但是海报上没有.h文件。它是viewController的名称吗?如果有人能给我指出正确的方向,那就太好了
链接:我使用了BlurryModelSegue pod,如果将该pod导入XCode项目,您将能够查看BlurryModalSegue.hm文件。这只是一个自定义序列,用于弹出以模糊UIImage为背景的视图控制器。您所指的页面上有一个指向Github项目的链接,其中包含BlurryModalSegue.h、BlurryModalSegue.m、一个示例项目和一个自述。它看起来像一个定制的“故事板序列”,如下所示: