最佳答案
objective-C :
[[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil];
swift 3.0:
UIApplication.shared.sendAction(#selector(resignFirstResponder), to: nil, from: nil, for: nil)
关于ios - 如何在 objective-c 中按下条形按钮时隐藏键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45834883/