5 November 2015

How to disable and enable a button in Xcode 7 macbook pro

5 November 2015 · 10:25

Space play/pause · J/L seek 10s · [ ] previous/next

Summary

Creates an Objective-C Single View Xcode project, configures the storyboard, and assigns a custom Button view-controller class. Builds a label-moving interface: an Up button shifts the label upward 25 pixels through linked IBOutlet and IBAction code. Adds Enable and Disable buttons; setting up.enabled to NO greys out Up, while YES restores movement, verified by testing.

Insight

Continues hands-on Xcode learning, shifting from game mechanics to reusable interface behavior despite initial uncertainty.