Set an Interface Builder created element's state programatically
- by mvexel
I have a couple of UISwitch elements in a view controller that is presented modally in my iPhone app. I set up the view in IB. I want these UISwitch elements to reflect the current values in my [NSUserDefaults standardUserDefaults] where I store the appropriate BOOLs.
I thought this would do the trick setting the switches to the right state, but…