Is it possible to scroll the edge in the iOS simulator?

iOS 7 provides a UIScreenEdgePanGestureRecognizer that detects bumps around the edges of the screen. Is it possible to simulate this gesture using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area simply moves the entire frame of the simulator.

+8
xcode ios7 ios-simulator uipangesturerecognizer
source share
1 answer

You do not need to scroll the edges to call UIScreenEdgePanGestureRecognizer , just start very close to the edge. It works if I start no more than ~ 15 points from the edge.

(this is if for the simulator. I never tested this on a device)


As a side note: you need to create a gestureRecognizer for each edge. You cannot combine UIRectEdgeAll , so UIRectEdgeAll will not work.

+20
source share

All Articles