You need to do three things:
- You need to call
-becomeFirstResponderon 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:senderto show/hide menu items on an individual basis.