i have two .m file .i used nsstring object on another .m file its always null.
//postputgetFunction.h
     @property(retain,nonatomic) IBOutlet NSMutableString *postRegisterResponseUserId;
//postputgetFunction.m
  @synthesize postRegisterResponseUserId;
    -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
   {
if ([flag isEqualToString:@"post"])
{
    NSLog(@"Post received data here.....");
    NSDictionary *dict=[NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
    postRegisterResponseName=[dict valueForKey:@"Name"];
    postRegisterResponseSuccess=[dict valueForKey:@"Success"];
    postRegisterResponseUserId=[dict valueForKey:@"UserId"];
    NSLog(@"ReceiveData :Name : %@ \n Success : %@ \n UserId : %@",postRegisterResponseName,postRegisterResponseSuccess,postRegisterResponseUserId);
   //Above statement display the value properly..........
    flag=Nil;
}
}
but i am using in another .m file ... In this .m file its shown null value .. like this, //Verification.h
    #import "PostPutGetFunction.h"
    @property (retain, nonatomic) PostPutGetFunction *postputgetFunction;
//verification.m
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
postputgetFunction=[[PostPutGetFunction alloc]init];
}
- (IBAction)verificationBtnClick:(id)sender
{
    NSLog(@"%@",postputgetFunction.postRegisterResponseUserId);
    //here its always shown NULL ... i didnt get the value here ...
}
 
     
     
    