motionEnded methong not working with TabBarController iPhone
Posted
by harekam_taj
on Stack Overflow
See other posts from Stack Overflow
or by harekam_taj
Published on 2010-04-09T16:10:57Z
Indexed on
2010/04/09
16:13 UTC
Read the original article
Hit count: 453
iphone
|iphone-sdk
Hello Guys,
I can I make motionEnded work in one of my viewController inside the tabbarcontroller.
-(BOOL)canBecomeFirstResponder
{
return YES;
}
In viewDidLoad I got
[self becomeFirstResponder];
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
if (motion == UIEventSubtypeMotionShake )
{
NSLog(@"motioned");
}
}
© Stack Overflow or respective owner