mercredi 3 juin 2015

How to programmatically tap a UIImageView in unit tests?

In XCTest I need to simulate tapping on a UIImageView. For UIButton I use sendActionsForControlEvents method:

sendActionsForControlEvents(UIControlEvents.TouchUpInside)

But it looks like UIImageView does not have this method. Is there a way to simulate tapping on UIImageView in XCTest?

Aucun commentaire:

Enregistrer un commentaire