Quote:
Originally Posted by markwilliams
I think you are invoking the second view (view2) in the following manner.
.h file of view1
#import <UIKit/UIKit.h>
#import "View2Controller.h"
@interface View1Controller : UIViewController {
View2Controller *view2;
}
@property (nonatomic,retain) View2Controller * view2;
@end
in .m file of view2
if(self.view2 ==nil) {
View2Controller *view2Controller = [[View2Controller alloc] initWithNibName:@"View2View" bundle:[NSBundle mainBundle]];
self. view2 = view2Controller;
[view2Controller release];
[self.navigationController pushViewController:self. view2 animated:YES];
In view2, create a property by name textValue andyou can set the text field value to this property just before the the last line of code.
for eg:
view2.textvalue=myTextField.text;
[self.navigationController pushViewController:self. view2 animated:YES];
|
I am doing exactly what you have mentioned..... I will try out what u have said and will reply back...... with my code
Thanks for the help
-John M