How to set interface method between two viewController to pass paramter in Navigation Controller
Posted
by TechFusion
on Stack Overflow
See other posts from Stack Overflow
or by TechFusion
Published on 2010-04-14T05:06:45Z
Indexed on
2010/04/14
5:13 UTC
Read the original article
Hit count: 263
Hello, I have created Window based application, root controller as Tab Bar controller. One Tab bar has Navigation controller.
Navigation controller's ViewControlller implementation, I am pushing Viewcontroller.
I am looking to pass parameter from Navigation Controller's View controller to pushed View Controller.
I have tried to pass as per below method. //ViewController.h @interface ViewController:UIViewController{ NSString *String; } @property(copy, nonatomic)NSString *String; @end //ViewController.m #import "ViewController1.h"
ViewController1 *level1view = [[ViewController alloc]init]; level1view.hideBottomBarWhenPushed = YES; level1view.theString = String; [self.navigationController pushViewController:level1view animated:YES]; [level1view release];
//ViewController1.h NSString *theString;
@property(copy, nonatomic)NSString *theString;
This is working fine. but I want to pass more than one parameter like Integer and UITextFiled Values so how to do that?
Is there any Apple Doc that I can get idea about this?
Thanks,
© Stack Overflow or respective owner