problem while getting arrays from one class to another class
<p>i am have 4 arrays in myclass.m</p>

<p>i need to get those arrays into myclassviewcontroller.m</p>

<p>for that i write code in myclassviewcontroller.m like this.</p>

<pre><code>- (void)resultarrays :(NSMutableArray *)Agentids loanofficerid:(NSMutableArray *)Loanofficerid agentname:(NSMutableArray *)agentname agentemail:(NSMutableArray *)agentemail agentphone:(NSMutableArray *)Agentphone {

    agentids = [[NSMutableArray alloc] initWithObjects:Agentids,nil];
    loanofficerid = [[NSMutableArray alloc] initWithObjects:Loanofficerid,nil];
    agentnames = [[NSMutableArray alloc] initWithObjects:agentname,nil];
    agentemails = [[NSMutableArray alloc] initWithObjects:agentemail,nil];
    agentphone = [[NSMutableArray alloc] initWithObjects:Agentphone,nil];

    NSLog(@"123 %@",agentids);
    NSLog(@"123 %@",loanofficerid);
    NSLog(@"123 %@",agentnames);
    NSLog(@"123 %@",agentphone);
}
</code></pre>

<p>in myclass.m i write this</p>

<pre><code>myclassviewcontroller *LOVobj = [[myclassviewcontroller alloc]init];
    [LOVobj resultarrays:resultData_agent loanofficerid:array1 agentname:array2 agentemail:array3 agentphone:array4];
</code></pre>

<p>then it displays all the objects that i print in console.</p>

<p>After this, In the button click i print these arrays then it prints null.</p>

<p>even i assign setter and getter methods to it.</p>

<p>i did n't what's the problem can any one please help me.</p>

<p>Thank u in advance.</p>
