You have to subclass NSObject
class Car : NSObject { func drive(){ print("Driving..") } } let car : Car = Car() car.perform(NSSelectorFromString("drive"))
Just finishing up brewing up some fresh ground comments...
Just finishing up brewing up some fresh ground comments...