Touching a button does not trigger a segue. I need to hold the button for several seconds to run the push to another screen.
I use Storyboards and IOS 5.
In IOS6 works.
Any suggestions for research?
Thanks
EDIT:
@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
{
}
The following code lines are causing the problem:
UITapGestureRecognizer *touchDismissKeyboard = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)];
[self.view addGestureRecognizer:touchDismissKeyboard];
In IOS 6 works but in IOS5 touch the button for a long time (4-5 seconds) is necessary to trigger segue
The following code lines are causing the problem:
UITapGestureRecognizer *touchDismissKeyboard = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)];
[self.view addGestureRecognizer:touchDismissKeyboard];