Here is my AppDelegate.h(And i have synthesized this properties in Appdelegate.m)
{
NSString *uName;
NSDictionary *messagesDict;
NSString *serve1r;
NSDictionary *firstGet;
}
@property (strong, nonatomic) UIWindow *window;
@property (copy, readwrite) NSString *uName;
@property (copy, readwrite) NSString *serve1r;
@property (retain, nonatomic) NSDictionary *firstGet;
I have tree View controllers, via a textfield i enter some user infos and want to share these objects(username, server IP..) in the other view controllers. I assing new variables in the other classes(SecondVC and ThirdVC) like below:
MyDelegate *sharedDa= (MyDelegate *)([[UIApplication sharedApplication]delegate]);
After this point, i can see the uName in the second class(log it or display on e textfield) but i cant see anything in the third class. What is wrong with my code can anyone help?