Here\'s what I\'m trying to do. If you\'ve ever played Halo or CoD, you\'d know that you could change the name of a weapon load-out.
What I\'m doing is making it so you
It is now this For swift 3,
let button = (sender as AnyObject)
button.setTitle("Your text", for: .normal)
(The constant declaration of the variable is not necessary just make sure you use the sender from the button like this) :
(sender as AnyObject).setTitle("Your text", for: .normal)
Remember this is used inside the IBAction of your button.