Hi,
I have now spent too many hours on something which might be dead simple.
I have managed to get a simple UI working, using the interfacebuilder.
I use the standard setup where the UI related code is in a UIViewController.m and .h file.
I want to access the values I receive from my UI objects in my TestApp, but can´t figure out how pass a value from the UIViewController.m code to the TestApp. I have tried declaring a variable in TestApp.h, but when I tried to use this variable within the IBAction code I am told that the variable isn´t declared within this scope.
If I instead try to declare the variable in the UIViewController.h file I get a duplicate symbol error with my variable.
Even if I move all the code from UIViewController to the TestApp, I still get an error that the variable is not declared within the scope of the IBAction part of the code.
Anybody with more luck doing similar things?
I think I need to use @property, but don´t really understand how to use it for other variables than those connected to the UI objects.
hc