0

第一的:

textView.inputAccessoryView = bar;
[textView becomeFirstResponder];

之后:

textView.inputAccessoryView = nil;
[textView reloadInputViews];
[textView resignFirstResponder];
[self.view addSubView:bar];

bar 是 inputAccessoryView。它不会被添加到 self.view。如何实现?

4

0 回答 0