- (IBAction)login:(id)sender { UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UIViewController *LoginViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"firstview"]; LoginViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentViewController:LoginViewController animated:YES completion:^{ NSLog(@"Present Modal View"); }]; }
时间: 2024-12-15 23:17:33