Objective-C is really wierd, i can t get the hang of it... I have a NSstring that is losing it s value if I try to reassign it... Here s how I use it.. Can anyone tell me what am I doing wrong? it s happening at the assigning of the new value..
@interface PageViewController : UIViewController {
NSString *mystring;
}
- (void)viewDidLoad {
mystring=[ [NSString alloc] initWithString:@""];
}
-(void) function_definition:(NSString *) param {
.............
mystring=param;
.........
}