Considering porting/rewriting an app for the iPad and need some UI advice. On the iPad is there a way to pop a context-menu up from a text field without the text field losing focus? If not, what is the closest thing in the UI to this sort of functionality?
A:
In 3.2, the menuItems
of the UIMenuController can be customized, so you could just add your items into that array.
If you don't need the text field to be interactive than the menu appears, you could also use a pop-over or action sheet for more flexibility. Make that text field -becomeFirstResponder
after that context menu is dismissed.
KennyTM
2010-05-06 06:04:39
Thanks for the info. The functionality needed is character-insertion and selection-replace. The selectionStart and selectionEnd indices of the text-field cannot be lost when the context-menu is opened. The context-menu choice returns a string which either gets inserted into the field at the insertion point, or it replaces any selected text.
Tim
2010-05-12 18:56:37