-
Notifications
You must be signed in to change notification settings - Fork 232
Useful UIView methods for testing
moredip edited this page Apr 28, 2012
·
2 revisions
This is an incomplete list of methods which are available on CocoaTouch classes that can be useful to use for test automation.
Note that methods available on a class are also available on derived classes. For example you can call touch or tag on a UIButton, and setContentOffset:animated: on a UITableView
| class | method |
|---|---|
| UIView | touch |
| UIView | touchx:y: |
| UITextField | setText |
| UIScrollView | setContentOffset:animated: |
| UIScrollView | zoomToRect:animated: |
| UITableView | scrollToNearestSelectedRowAtScrollPosition:animated: |
| class | method |
|---|---|
| UIView | accessibilityLabel |
| UIView | accessibilityHint |
| UIView | accessibilityFrame |
| UIView | tag |
| UIView | isHidden |
| UIView | isAnimating |
| UIAlertView | message |
| UITextField | placeholder |
| UITextField | text |
| UISwitch isOn |