iOS Dev:
UITextView
(/UITextField
) which its inputView is Kind Of UIPickerView
Class,
So I can select multiple cities.
While the Tags(labels), could be clicked removed Only the right part of it where there is a fork image(button).
Like the picture:
PS:
I tried to put buttons on UITextField
, with city(data) selected By UIPickerView
(inputView).
I want to click the button, the button removedFromSuperView
. The Button's SEL doesn't work.
The result is that UITextField
become theFirstResponder.
I think UIRespond Chain matters.
PPS:
Some like YYText + UIPickView.
Good, looks like the demo angularjs-tagpicker.
Just Like TagPicker by JavaScript
PPPS: Github Code
I shift the way of thinking.
Not to take the UITextField/UITextView as the tags container instead by a UIView. Then OK.