Adding input accessory view to UITextField while keyboard is visible
问题 I would like to add an input accessory view to a UITextField while it is the first responder, i.e. showing the keyboard. Apparently, assigning a UIView to the inputAccessoryView property in this state doesn't display this view. I have to first dismiss the keyboard and re-select the UITextField . Is there a way to add an input accessory view without dismissing and re-selecting? 回答1: If possible only assign the inputAccessoryView once. If you need it to be customized, and can only determine how