I am trying to build a app that will have a view hidden unless you pull it from right. For example the Dolphin web browser for iOS has the ability to pull from the right and it will bring up your favorites and some other options. Does anyone know of a way to implement that into a application? Is there some code or tutorials floating around?
Heres the link to the Dolphin iOS App: http://itunes.apple.com/us/app/dolphin-browser-hd/id460812023?mt=8
in viewDidLoad to capture swipe gesture
UITapGestureRecognizer *swipe = [[UISwipeGestureRecognizerDirectionRight alloc] initWithTarget:self action:@selector(swipeDetected)];
[viewA addGestureRecognizer:swipe];
[swipe release];
-(void)swipeDetected {
//transition viewB into view of user
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelay:0];
[UIView setAnimationDuration:0.75];
CGRect rect5 = CGRectMake(0, 0, 320, 480);
viewB.frame = rect5;
[UIView commitAnimations];
}