how to display the same value into another class's textfield?
<p>hi all i have implemented code as shown in the below here problem is when i clicked on click event textfield *settextvalue value is not appearing into the next view textfield for this give me the solution in iphone.  </p>

<p>ClassA.h</p>

<pre><code>@classB
{
    UITextField *settextvalue;
    ClassB *b;
}
@property(nonatomic,retain)UITextField *settextvalue;
@property(nonatomic,retain)ClassB *b;
@end

ClassA.m
{
@ synthesize b,settextvalue;

-(void)viewDidload{

   b = [[ClassB alloc]init];
   settextvalue.text=@"333";
}
-(IBAction)resultOfvalue{

       [self.view addSubview:[b view]];

         settextvalue.text = b.resultyear.text;




}



Class B.h {

UITextField *resultyear;
}
@property(nonatomic,retain)UITextField *resultyear;
@end

Class B.m
{
@synthesize resultyear;
}
</code></pre>
