Navigation doubts in iphone
<p>I have to pass a value from one view-controller to another view-controller,my this code works fine </p>

<pre><code>NSString *localStringtextnote;

-(IBAction)_clickbtnsyncNote:(id)sender
{
localStringtextnote = textVieww.text;
        Googledocmainpage *detailViewController = [[Googledocmainpage alloc] initWithNibName:@"Googledocmainpage" bundle:nil];

        detailViewController.localStringtextnote = localStringtextnote;
        // ...
        // Pass the selected object to the new view controller.

        [self.navigationController pushViewController:detailViewController animated:YES];

        [detailViewController release];
</code></pre>

<p>but i want to pass localStringtextnote through this way</p>

<pre><code>Googledocmainpage *aSecondViewController = [[Googledocmainpage alloc] initWithNibName:@"Googledocmainpage" bundle:nil];
    aSecondViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    [self presentModalViewController:aSecondViewController animated:YES];
    [self.navigationController pushViewController:aSecondViewController animated:YES];
</code></pre>

<p>how to pass a value through the above page rediriction method?i hope u understand my question.thanks in advance.</p>
