Possible Duplicate:
Objective C Static Class Level variables
Instance variable 'variable' accessed in class method error
I have:
+(NSString *)getUsernameString
{
return usernameString;
}
usernameString
is an NSString declared in the interface and as a property.
I get the error instance variable 'usernameString' accessed in class method
What am I missing for this to work?