Declared in UIView-KIFAdditions.h

Properties

tappable

@property (nonatomic, readonly, getter=isTappable) BOOL tappable

Instance Methods

accessibilityElementMatchingBlock:

- (UIAccessibilityElement *)accessibilityElementMatchingBlock:(BOOL ( ^ ) ( UIAccessibilityElement *))matchBlock
Discussion

@method accessibilityElementMatchingBlock:

Parameters

matchBlock

A block which returns YES for matching elements.

Return Value

The matching accessibility element.

Declared In

UIView-KIFAdditions.h

accessibilityElementWithLabel:

- (UIAccessibilityElement *)accessibilityElementWithLabel:(NSString *)label

accessibilityElementWithLabel:accessibilityValue:traits:

- (UIAccessibilityElement *)accessibilityElementWithLabel:(NSString *)label accessibilityValue:(NSString *)value traits:(UIAccessibilityTraits)traits

accessibilityElementWithLabel:traits:

- (UIAccessibilityElement *)accessibilityElementWithLabel:(NSString *)label traits:(UIAccessibilityTraits)traits

dragAlongPathWithPoints:count:

- (void)dragAlongPathWithPoints:(CGPoint *)points count:(NSInteger)count

dragFromPoint:toPoint:

- (void)dragFromPoint:(CGPoint)startPoint toPoint:(CGPoint)endPoint
Discussion

@method dragFromPoint:toPoint:

Causes the application to dispatch a sequence of touch events which simulate dragging a finger from startPoint to endPoint.

Parameters

startPoint

The point at which to start the drag, in the coordinate system of the receiver.

endPoint

The point at which to end the drag, in the coordinate system of the receiver.

Declared In

UIView-KIFAdditions.h

flash

- (void)flash

isDescendantOfFirstResponder

- (BOOL)isDescendantOfFirstResponder

isTappableInRect:

- (BOOL)isTappableInRect:(CGRect)rect
Discussion

@method isTappableInRect:

Determines whether or not tapping within the given rectangle would actually hit the receiver or one of its children. This is useful for determining if the view is actually on screen and enabled.

Parameters

rect

A rectangle specifying an area in the receiver in the receiver’s frame coordinates.

Return Value

Whether or not the view is tappable.

Declared In

UIView-KIFAdditions.h

isTappableWithHitTestResultView:

- (BOOL)isTappableWithHitTestResultView:(UIView *)hitView
Discussion

@method isTappableWithHitTestResultView:

Some times, your view hierarchies involve putting overlays over views that would otherwise be tappable. Since KIF doesn’t know about these exceptions, you can override this method as a convenient way of hooking in to the check for something being tappable. Your implementation will probably want to call up to super.

Parameters

hitView

The view -hitTest: returned when trying to tap on a point inside your view’s bounds

Return Value

Whether or not the view is tappable.

Declared In

UIView-KIFAdditions.h

longPressAtPoint:duration:

- (void)longPressAtPoint:(CGPoint)point duration:(NSTimeInterval)duration

subviewWithClassNameOrSuperClassNamePrefix:

- (UIView *)subviewWithClassNameOrSuperClassNamePrefix:(NSString *)prefix

subviewWithClassNamePrefix:

- (UIView *)subviewWithClassNamePrefix:(NSString *)prefix

subviewsWithClassNameOrSuperClassNamePrefix:

- (NSArray *)subviewsWithClassNameOrSuperClassNamePrefix:(NSString *)prefix

subviewsWithClassNamePrefix:

- (NSArray *)subviewsWithClassNamePrefix:(NSString *)prefix

tap

- (void)tap

tapAtPoint:

- (void)tapAtPoint:(CGPoint)point

tappablePointInRect:

- (CGPoint)tappablePointInRect:(CGRect)rect
Discussion

@method tappablePointInRect:(CGRect)rect;

Finds a tappable point in the receiver, where tappable is defined as a point that, when tapped, will hit the receiver.

Parameters

rect

A rectangle specifying an area in the receiver in the receiver’s frame coordinates.

Return Value

A tappable point in the receivers frame coordinates.

Declared In

UIView-KIFAdditions.h