Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-19-2009, 11:14 AM   #3 (permalink)
JohnMabassa
Registered Member
 
Join Date: Feb 2009
Location: India
Posts: 137
Default

Quote:
Originally Posted by markwilliams View Post
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
JohnMabassa is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,725
Threads: 89,183
Posts: 380,505
Top Poster: BrianSlick (7,125)
Welcome to our newest member, boltdozer
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:50 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.