Search code examples
iphoneuiwebviewios4uimenucontroller

Can I subclass UIMenuController so that it can take icons instead of just text?


How would one go about doing this? I'm looking for a dense, purely graphical menu on tap-hold.


Solution

  • In 3.2 you can add menu items using the menuItems property. But I think subclassing won't be useful, since it's a singleton that does not returns the views of each menu item. You could access menuFrame when setMenuVisible:animated: is called, so you can add you're own view that looks like a menu items with icons. But for adding icons to the system menu items... I think you should stick to what's Apple is giving you ;)