UITextInputMode currentInputMode is deprecated. 警告的解决

如果你的工程最低支持版本为7.0 你会发现有警告 : 'currentInputMode' is deprecated: first deprecated in iOS 7.0

替换方案:UITextInputMode *currentInputMode = [notification object];

或者:

UITextView *textView = [[UITextView alloc] init];
UITextInputMode *currentInputMode = textView.textInputMode;
posted @ 2017-07-26 17:33  一人前行  阅读(1303)  评论(0编辑  收藏  举报