How to save response and send specific parameter in that response to server using AFN 3.0?
<p>I am going to use <code>AFNetworking 3.0</code>.</p>

<p>On my first view when i enter mobile number and click on submit button then it send to server and get response from server, in that response, suppose i get 2 parameters ( like id:xx, token:xxxxx,).</p>

<p><strong>Now my question is</strong>-</p>

<p>When i get response from server then i want to go on 2nd view and when i click on login button,I want to send only token which i got from previous response(not id).How can i take only that token from previous view and send it from current view. </p>

<p>I tried like this,but it not completed or not working.
I tried to save response data like this:</p>

<pre><code> NSString *str = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
 NSLog(@"responseData: %@", str);
</code></pre>

<p>and tried to send on 2nd view:</p>

<pre><code> -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([[segue identifier]isEqualToString:@"loginsegue"])
       {
         loginViewController *lvc= [segue destinationViewController];
         lvc.str=_str;
       }
 }
</code></pre>