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
  • 78,605
  • 19
  • 187
  • 280
pesch
  • 1,976
  • 2
  • 17
  • 29

0 Answers0