Instance Method

setNeedsDisplayInRect:

Marks the region within the specified rectangle as needing to be updated.

Declaration

- (void)setNeedsDisplayInRect:(CGRect)r;

Parameters

theRect

The rectangular region of the layer to mark as invalid. You must specify this rectangle in the layer’s own coordinate system.

See Also

Updating Layer Display

- setNeedsDisplay

Marks the layer’s contents as needing to be updated.

needsDisplayOnBoundsChange

A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

- displayIfNeeded

Initiates the update process for a layer if it is currently marked as needing an update.

- needsDisplay

Returns a Boolean indicating whether the layer has been marked as needing an update.

+ needsDisplayForKey:

Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed.