Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-19-2009, 10:14 AM   #3 (permalink)
JohnMabassa
Registered Member
 
Join Date: Feb 2009
Location: India
Posts: 125
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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,272
Threads: 39,066
Posts: 171,312
Top Poster: smasher (2,575)
Welcome to our newest member, monady754
Powered by vBadvanced CMPS v3.1.0

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