When I record with instruments, I got the following:

target.frontMostApp().mainWindow().scrollViews()[0].dragInsideWithOptions({startOffset:{x:0.95, y:0.62}, endOffset:{x:0.00, y:0.62}});

But if I play it, nothing happens. On iOS 6 it worked fine.

有帮助吗?

解决方案

Yes it wont work on iOS 7 simulator. But as an alternative you can work on device. These method will work fine on device but not on iOS 7 simulator. And if you want to work on simulator you have to wait for new one.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top