ios - Placing UIView or UILabel inside UITextField or UITextView acting like character -
i need create dialog, similar 1 used write functions in numbers apple, example.
user can select range in table, represented kind of uiview within text input line. when long-tapped, content can edited normal text, of import whole subview, containing text range description treated 1 character.
does know or have thought how accomplish this?
i appreciate hints...
i had deal similar, have custom uiview(s) in search field.
i'm not aware of "simple" way (ie, api) accomplish goal. need create custom component looks classic field, isn't one.
to little more specific: - subclass uiview (or straight uiscrollview) - have within textfield (or uitextview depending if needs more 1 line) handle "keyboard". - set custom uiview/uilabel before textfield/textview , adjust textfield/textview origin depending these views/labels
if want have label/view in text, it's little more complex , you'll need more custom: - handling keyboard events without textfield/textview (there way forgot how exactly) - drawing text , adding views/labels in specific locations.
of course of study depends on component want create ^^ there no 1 simple answer.
good luck.
ios uitextfield uitextview
No comments:
Post a Comment