Contents

unlockFocus()

Unlocks focus from the current view.

Declaration

func unlockFocus()

Discussion

Call this method after a previous call to the lockFocus(), lockFocusIfCanDraw(), or lockFocusIfCanDraw(in:) method of this view object. Doing so releases focus from the current view and returns it back to the previously focused view, if any. This method raises an NSInvalidArgumentException if the current view does not have the focus.

See Also

Methods