本文介绍了FirstResponder缺少重做:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么我在InterfaceBuilder的文件中的FirstResponder缺少redo:
连接(在Received Actions
列表中)? undo:
存在,但redo:
不存在.我该如何解决?
Why my FirstResponder in InterfaceBuilder's file is missing redo:
connection (in Received Actions
list)? undo:
exists, but redo:
doesn't. How could I fix it?
推荐答案
这是一个错误.解决方法是将其扔到文件中的某个位置:
This is a bug. The workaround is to throw this in a file somewhere:
@interface NSResponder (Redo)
- (IBAction)redo:(id)sender;
@end
然后在Interface Builder中建立连接.完成后,您可以删除此代码.
Then make your connection in Interface Builder. Once that is done you can delete this code.
这篇关于FirstResponder缺少重做:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!