4

I am getting this warning:

Argument of '#selector' refers to instance method 'customButtonDidTouch()' in 'CustomTableViewController' that depends on '@objc' attribute inference deprecated in Swift 4

Xcode suggests adding @objc to my customButtonDidTouch() method, but doing so yields this other warning:

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and disable Swift 3 @objc inference.

Any suggestions?

Hamish
  • 74,809
  • 18
  • 177
  • 265
pesch
  • 1,906
  • 2
  • 15
  • 28

0 Answers0