xcode disable button programmatically code example Example: xcode disable a button myButton.isEnabled = false;