I have no idea what I am doing wrong. I am also quite new to programming so I am not very good at debugging. This was a test app so that I can see how swift ties in with app
when using performSelector() methods your method (matching the selector) should be marked as @objc
{
//...
performSelector(Selector("myMethod"), withObject: nil, afterDelay: 0.3)
//...
// or in swift 2.2
performSelector(#selector(ClassName.myMethod), withObject: nil, afterDelay: 0.3)
//
// or in swift 3
perform(#selector(ClassName.myMethod), with: nil, afterDelay: 0.3)
//
}
@objc private func myMethod() { }