XCode7 UITests how to test screen edge pan gestures?
问题 I have the following gesture recognizer in my app. I've looked at xCode7 UI and see that it has swipe up/down/left/right, but no pan or edge pan gestures. How can one test or initiate screen edge pan gesture for UITesting purposes? UIScreenEdgePanGestureRecognizer *leftEdgeGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(show)]; leftEdgeGesture.edges = UIRectEdgeLeft; leftEdgeGesture.delegate = self; [self.view addGestureRecognizer:leftEdgeGesture]; 回答1