Written by Sean Behan on Sat Jun 09th 2018

You have to subclass NSObject

class Car : NSObject {
  func drive(){
      print("Driving..")
    }
}

let car : Car = Car()
car.perform(NSSelectorFromString("drive"))

Tagged with..
#swift #xcode #ios #macos #cocoa #apple

Just finishing up brewing up some fresh ground comments...