View doesn't respond to touches after shake

Posted by Mike Rychev on Stack Overflow See other posts from Stack Overflow or by Mike Rychev
Published on 2010-03-23T14:15:54Z Indexed on 2010/03/23 14:23 UTC
Read the original article Hit count: 308

In my app I've implemented a shake event and it shows a UIImageView. When the UIImageView is shown, I hide the Nav Bar with:

[self.navigationController setNavigationBarHidden:YES animated:NO];

And after that I want to bring it back when user touches the screen:

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [[self navigationController] setNavigationBarHidden:NO animated:YES]; }

But it doesn't work! Like my view doesn't respond to touches.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone