需要双击才能更改按钮操作

时间:2014-07-01 08:56:47

标签: ios xcode uibutton ibaction

我正在测试此代码。

    NSString *storyBoardName = @"Main";
    UIStoryboard *storyBoard =[UIStoryboard storyboardWithName:storyBoardName bundle:nil];

    UIViewController *VC =[storyBoard instantiateViewControllerWithIdentifier:@"T1"];
    [self presentViewController:VC animated:NO completion:nil];

它工作正常,但需要按两次按钮才能使此代码正常工作。是否有可能将其更改为仅需要一次点击?

0 个答案:

没有答案
相关问题