触摸按钮不会触发分段。我需要按住按钮几秒钟才能运行到另一个屏幕的推送。
我使用故事板和iOS5。
在IOS6 works中。
对研究有什么建议吗?
谢谢
编辑:
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UITapGestureRecognizer *touchDismissKeyboard = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)];
[self.view addGestureRecognizer:touchDismissKeyboard];
[[self navigationController] setNavigationBarHidden:YES animated:NO];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)dismissKeyboard
{
}以下代码行导致了该问题:
UITapGestureRecognizer *touchDismissKeyboard = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)];
[self.view addGestureRecognizer:touchDismissKeyboard];在iOS6中工作,但在IOS5中,长时间触摸按钮(4-5秒)是触发segue所必需的
发布于 2013-06-27 16:41:02
以下代码行导致了该问题:
UITapGestureRecognizer *touchDismissKeyboard = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)];
[self.view addGestureRecognizer:touchDismissKeyboard];https://stackoverflow.com/questions/17291692
复制相似问题