How to set button border if the button is linked to storyboard and is of type @IBAction?
The button's type is not IBAction, the IBAction is the connection between the storyboard and the function
if you want to change the button in the code, connect it from the storyboard as an outlet (hold ctrl and drag the button from storyboard to your viewController)
(and u can also change it from the storyboard)