Instance Property

performsActionsWhilePresentingModally

A Boolean value indicating whether the view controller performs menu-related actions.

Declaration

@property(nonatomic, readonly) BOOL performsActionsWhilePresentingModally;

Discussion

The default value of this property is YES, which causes the view controller to handle actions passed along the responder chain by modally presented view controllers. If the app includes the UIViewControllerPerformsActionsWhilePresentingModally key in its Info.plist file, the default value matches the value of that key instead.

A presenting view controller might not want to handle actions in one of its modally presented child view controllers. Overriding this property and returning NO causes UIKit to ignore this view controller when searching for a target to handle actions.

See Also

Accessing the Available Key Commands

- addKeyCommand:

Associates the specified keyboard shortcut with the view controller.

- removeKeyCommand:

Removes the key command from the view controller.