我正在测试此代码。
NSString *storyBoardName = @"Main";
UIStoryboard *storyBoard =[UIStoryboard storyboardWithName:storyBoardName bundle:nil];
UIViewController *VC =[storyBoard instantiateViewControllerWithIdentifier:@"T1"];
[self presentViewController:VC animated:NO completion:nil];
它工作正常,但需要按两次按钮才能使此代码正常工作。是否有可能将其更改为仅需要一次点击?