1
嗨我實現了這個功能,我可以交手勢,但我怎麼能識別哪個手勢是哪個?例如簡單的移動到左或右?簡單的方法來識別/識別一個手勢
我的處理代碼:
/*this function is made to handel finger gesture and flip the view to other account*/
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
FirstViewController *screen = [[FirstViewController alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
screen.myArray = myArray;
[self presentModalViewController:screen animated:YES];
[screen release];
}
感謝您的任何答案