ios - Removing "Define" from UISearchBar -
i wish remove "define" option menu of uisearchbar have placed in view's nib file.
as suggested, subclassed uisearchbar , overrode -(bool)canperformaction:(sel)action withsender:(id)sender
return yes cut, copy , paste options. set custom class of uisearchbar subclass created, in nib file.
the method indeed called, doesn't work intended. when set breakpoint, , monitor actions called, it's called define:
on few occasions (yes, randomly - might come on 1 run, , might not on other). when called define:
, , no returned, "define" option turns on menu.
is there way can fix this? deployment target app ios 7.
Comments
Post a Comment