Improve UIMenuController sample code.