Transferring the value in the iphone programming
<p>This is my hole code which I am using, I want to transfer scrollViewCintroller Class value in the page2 class.</p>

<p>scrollAppDelegate.h</p>

<pre><code>@class scrollViewController;
@interface scrollAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
UIWindow *window;
scrollViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet scrollViewController *viewController;
@end
</code></pre>

<p>scrollAppDelegate.m</p>

<pre><code>#import "scrollAppDelegate.h"
#import "scrollViewController.h"

@implementation scrollAppDelegate

@synthesize window;
@synthesize viewController;

#pragma mark -
#pragma mark Application lifecycle

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:     
(NSDictionary *)launchOptions {    

self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];

return YES;
}
</code></pre>

<p>scrollViewController.h</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;
#import "result.h"
#import "page2.h"
@interface scrollViewController : UIViewController{
    IBOutlet UITextField        *txtName; 

}
@property (nonatomic, retain) UITextField        *txtName;
- (IBAction)  next           :(id)sender;
</code></pre>

<p>scrollViewController.m</p>

<pre><code>#import "scrollViewController.h"

@implementation scrollViewController
@synthesize txtName;

-(IBAction)next:(id)sender
{
objPage2=[[page2 alloc]initWithNibName:@"page2" bundle:nil];
[self.view addSubview:objPage2.view];       
}
@end
</code></pre>

<p>I want to use this txtName in other page2 class
page2.h</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;
@interface page2 : UIViewController {

}
@end
</code></pre>

<p>page.m</p>

<pre><code>#import "page2.h"
@implementation page2
</code></pre>
