I have an NSString which has been declared as property and being allocated and initialised in view did load as below:
NSString *textWithKey;
@property(nonatomic,retain)NSString *textWithKey;
in .m i have
@synthesize textWithKey;
and in viewDidLoad i have
self.textWithKey=[[NSString alloc]init];
self.textWithKey=@"";
Now somewhere in my code i am using
self.textWithKey=[self.textWithKey stringByAppendingString:text1];
it works fine untill another method is called which returns different values. and from there on this perticularline is called again but debugger shows textWithKey out of scope.I have not released textWihKey any where.