Hi, I have a trouble with my app. I'm using the shake function, so that, when I shake the device, I change from one view to another.What happens is that when I change the view, I can't resign the FirstResponder from the shake function and I can't use the button that appears in the following view. I can't do anything
Anybody can help me please? Here I leave the code I'm using.
Thanks a lot
-(BOOL)canBecomeFirstResponder {
return YES;
}
-(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self becomeFirstResponder];
}
- (void)viewWillDisappear:(BOOL)animated {
[self resignFirstResponder];
[super viewWillDisappear:animated];
}
-(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
if (motion == UIEventSubtypeMotionShake)