I have created a variable in my App Delegate and from my first View Controller, I am saving a value to the variable (in the App Delegate).
Here is how I'm saving the value to the variable in the App Delegate:
MyAppDelegate *DelegateVar = TheValue;
NSLog(@"%@", DelegateVar);
// This NSLog outputs correct value
Later in the program, in a separate ViewController, I am trying to retrieve the value from the App Delegate. I am getting values that look to be pointers...
Here is how I'm trying to retrieve the value:
MyAppDelegate *MyVar = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
NSLog(@"%@", MyVar);
// outputs incorrect value
Anybody that has any input regarding my problem, your help would be greatly appreciated.