Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (IBAction)btnSignUp_touchUpInside:(id)sender
- {
- SignUpViewController *vc=[[SignUpViewController alloc]init]; //addyour secondviewcontroller
- vc.strFromUnlinkPage=[NSString stringWithFormat:@"%@. %@",yourinitialtextfield.text,yournametextfirld.text]; // here we concatennating 2 strings
- [self.navigationController pushViewController:vc animated:YES];
- }
- @interface SignUpViewController : BaseViewController<UITextFieldDelegate, UIAlertViewDelegate>{
- }
- @property (retain, nonatomic) NSString *strFromUnlinkPage;
- @property (retain, nonatomic) IBOutlet UILabel *lblGuide; //assumethat this is your secondviewcontroller `UIlabel` Name
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- self.lblGuide.text=[NSString stringWithFormat:@"%@", strFromUnlinkPage];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement