Tuesday, August 19, 2014

Button

Setup:

  1. Drag the button onto the storyboard
  2. Add handler:    
    @IBAction
     func btnClicked(btnTarget: UIButton!)
        {
            //add code here
        }
  3. On the storyboard, Right click drag from the button to yellow Viewcontroller icon and select the function btnClicked.

No comments:

Post a Comment