I am writing an app where I need to update the contents of a UIPickerView (fuseTypePicker) from two different places, (when a switch is toggled and also when a different pickerView is changed). There is a lot of code, so obviously a common method is the best way.
I have tried:
void UpdateFuseValues () {
// My code is in here
}
I can call this method with:
UpdateFuseValues()
The only problem is that I cannot reference any of my UI controls in the method. I get the red error line saying "Use of undeclared identifier"
How can I get around the problem.
I have tried:
void UpdateFuseValues () {
// My code is in here
}
I can call this method with:
UpdateFuseValues()
The only problem is that I cannot reference any of my UI controls in the method. I get the red error line saying "Use of undeclared identifier"
How can I get around the problem.