You need to do three things:
- You need to call
-becomeFirstResponder
on the view or view controller. - Your view or view controller needs to implement
-canBecomeFirstResponder
(returningYES
). - Optionally, your view or view controller can implement
-canPerformAction:action withSender:sender
to show/hide menu items on an individual basis.