So I have an old app that needs to be updated and this was the original code that worked:
myBtn.addTarget(nil, action:("addNewObject"), for:.touchUpInside)
"addNewObject" is a function common in several different classes of which an instance of myBtn will exist. However after trying to update the code to Swift 3 as below, I now get the "Use of unresolved identifier" error.
myBtn.addTarget(nil, action:(#selector(addNewObject)), for:.touchUpInside)