Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions
and dragFromToForDuration
functions have simply no effect. (The same tests worked fine with iOS 6.1 simulator.) Is this a known bug, or the usability of this functions has changed? Is there anyone who could use this function with iOS 7 simulator on iPad?
相关问题
- @objc protocol crashes the swift compiler
- Getting UITableViewCell from its superview iOS 7 i
- Access paging in iOS - previous and next : retriev
- Install Ad Hoc distributed app on iOS via USB, usi
- UITableViewCell top shadow is covered by UITableVi
相关文章
- didBeginContact:(SKPhysicsContact *)contact not in
- ios7 new pan gesture to go back in navigation stac
- IOS UICollectionview Dynamically change Cell's
- PhoneGap iOS 7 and localStorage
- Add UITextField to title view of navigation item
- iOS7 crashing - [__NSPlaceholderDictionary initWit
- SKStoreProductViewController rate disabled on iOS
- Chrono Timer Not Converting Seconds Properly
This is a bit old but it seems that
dragInsideWithOptions
is still not working.For a
UIScrollView
these methods can be used:Source: https://developer.apple.com/library/prerelease/ios/documentation/ToolsLanguages/Reference/UIAScrollViewClassReference/index.html
Ex:
Hope it helps!
A workaround: if you want to swipe scroll views containing a button on a later page, just simply tap this (invisible) button, it "scrolls to visible" automatic. (Or call this invisible element's
scrollToVisible()
function.)Another workaround: If you have a page control associated with your scroll view, use:
same issue here.
More than that, the documentation is missing for new iOS7 for everything related to UI Automation
https://developer.apple.com/library/prerelease/ios/documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html
Compare it with current doc, with full method list and description.
https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html
Same issue here. In addition to dragInsideWithOptions not working, dragFromToForDuration and flickFromTo aren't working either in Xcode 5 with iOS 7. I have been searching and waiting for a solution as well. Until then, swiping won't be possible.