addTarget method is used to assign actions to UIControl elements in IOS.
In the past I had no problem creating a UIButton programmatically, but ever since I've been using Xcode 9 and Swift 4, …
I have referred to countless other questions about a press-and-hold button but there aren't many related to Swift. I have …