I declare a property for my thread like so:
let loggingThread = Thread.init(target: self, selector: Selector(("loggingThreadProcess:")), object: nil)
@objc func loggingThreadProcess(object: AnyObject?) {
}
But I am getting the this error:
[NSThread initWithTarget:selector:object:]: target does not implement selector (*** -[_SwiftValue loggingThreadProcess:])
Any suggestions?
You should define it as:
let loggingThread = Thread.init(target: self, selector: #selector(loggingThreadProcess:), object: nil)