以下代码用于在swift 2.2中编译,不再是swift 3.0.我们如何解决这个问题?
Error: Binary operator ‘===’ cannot be applied to operands of type ‘Any?’ and ‘UIBarButtonItem!’
override func prepare(for segue: UIStoryboardSegue,sender: Any?) { if sender === saveButton { // Error! // ... } else if sender === closeButton { // Error! // ... } }