如何将这个填充的结构传递给我的func?
let dict = DictView(viewP: newView, gradiP: gradi, tituloP: titulo, setaP: buttonChevron, textViewP: newTextView)
buttonChevron.addTarget(self, action: #selector(hideOrShowSave(sender: dict)), for: .touchUpInside)
}
@objc func hideOrShowSave(sender: DictView){
}
方法不能被标记为 @objc
如果他们的参数采取了诸如结构体等不能与Objective-C桥接的东西。为什么你认为你的方法需要被标记为 @objc
?