Select Page

Crazy Level

Swift and Xcode Resources.

IBAction with Button Press
Published on: February 18, 2021
Author: Frank Vernon

When moving a button action into the View coding screen, CRTL + click and drag the button BELOW the “viewDidLoad” { bracketed } area.

In many cases, Touch Up Inside is the best response for this, especially when it’s a basic button response.

This also gives the button action a name for the code to find and use.