Hey guys,
Please help me I've been trying to figure this out for days. I'm making an iPhone app and I'm nearly done. I have a UISwitch in one view and a UIButton in another view. The UIButton is declared in the RulesView.h file and the UISwitch is in the SettingView.h file. I want the SettingsView.h/m file to be able to access the button. I want the switch to make it hidden. Here is my code which should work fine:
showAnswer is the name of the button and solutionSlider is the name of the switch.
Basically I want to know how to access an object from a different view or class.
(by the way I'm new to Mac development so try and explain everything to me if you can).
Thanks for your help
Kieran
Please help me I've been trying to figure this out for days. I'm making an iPhone app and I'm nearly done. I have a UISwitch in one view and a UIButton in another view. The UIButton is declared in the RulesView.h file and the UISwitch is in the SettingView.h file. I want the SettingsView.h/m file to be able to access the button. I want the switch to make it hidden. Here is my code which should work fine:
Code:
showAnswer.hidden = !solutionSlider.on;
showAnswer is the name of the button and solutionSlider is the name of the switch.
Basically I want to know how to access an object from a different view or class.
(by the way I'm new to Mac development so try and explain everything to me if you can).
Thanks for your help
Kieran