草庐IT

loadEditView

全部标签

ios - 来自 UIBarButtonItem 的 "unrecognized selector sent to instance"

我知道这个问题已经被问过很多次了。但我似乎无法克服这个错误。我使用ObjectiveC在我的应用程序的早期版本中运行它。下面的两个方法都在同一个UIViewController中。ViewController还作为RootViewController的引用,是UINavigationController的一部分。funcloadEditView(sender:AnyObject,animated:Bool=true){vareditViewController:EditViewController=EditViewController()//setsomestuffupself.nav