i'm new to obj-c and new to iphone dev..i'm making an iphone application in which i want to store a string in a variable and use it in different files..(different ViewControllers)
here is what i have done.. and what i have to do..:
i have this in "Vars.h" file:
and then i have this in "Vars.m" file:
now in other file "LoginViewController.m", i have this:
sorry for bad communicating skills.. =/
here is what i have done.. and what i have to do..:
i have this in "Vars.h" file:
Code:
extern NSString* AccessToken;
and then i have this in "Vars.m" file:
Code:
NSString * AccessToken = @"false";
now in other file "LoginViewController.m", i have this:
Code:
#import "Vars.h";
//......
-(IBAction) task {
// i have another NSString variable here named "var2"... i want the content of that var2 variable to be copied to AccessToken...how to do that..?
}
sorry for bad communicating skills.. =/
Last edited by a moderator: