Declared in UIView-KIFAdditions.h

Tasks

Properties

probablyTappable

@property (nonatomic, readonly, getter=isProbablyTappable) BOOL probablyTappable

windowOrIdentityWindow

Returns either the current window or another window if a transform is applied. Returns nil if all windows in the application have transforms.

@property (nonatomic, readonly) UIWindow *windowOrIdentityWindow

Declared In

UIView-KIFAdditions.h

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:displacement:steps:

- (void)dragFromPoint:(CGPoint)startPoint displacement:(KIFDisplacement)displacement steps:(NSUInteger)stepCount

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

dragFromPoint:toPoint:steps:

- (void)dragFromPoint:(CGPoint)startPoint toPoint:(CGPoint)endPoint steps:(NSUInteger)stepCount

eventWithTouch:

- (UIEvent *)eventWithTouch:(UITouch *)touch

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

isUserInteractionActuallyEnabled

Evaluates if user interaction is enabled including edge cases.

- (BOOL)isUserInteractionActuallyEnabled

Declared In

UIView-KIFAdditions.h

longPressAtPoint:duration:

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

pinchAtPoint:distance:steps:

- (void)pinchAtPoint:(CGPoint)centerPoint distance:(CGFloat)distance steps:(NSUInteger)stepCount

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

twoFingerPanFromPoint:toPoint:steps:

- (void)twoFingerPanFromPoint:(CGPoint)startPoint toPoint:(CGPoint)toPoint steps:(NSUInteger)stepCount

zoomAtPoint:distance:steps:

- (void)zoomAtPoint:(CGPoint)centerPoint distance:(CGFloat)distance steps:(NSUInteger)stepCount