Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. - (IBAction)btnSignUp_touchUpInside:(id)sender
  2. {
  3.  
  4. SignUpViewController *vc=[[SignUpViewController alloc]init]; //addyour secondviewcontroller
  5. vc.strFromUnlinkPage=[NSString stringWithFormat:@"%@. %@",yourinitialtextfield.text,yournametextfirld.text]; // here we concatennating 2 strings
  6. [self.navigationController pushViewController:vc animated:YES];
  7.  
  8. }
  9.  
  10. @interface SignUpViewController : BaseViewController<UITextFieldDelegate, UIAlertViewDelegate>{
  11.  
  12. }
  13. @property (retain, nonatomic) NSString *strFromUnlinkPage;
  14.  
  15. @property (retain, nonatomic) IBOutlet UILabel *lblGuide; //assumethat this is your secondviewcontroller `UIlabel` Name
  16.  
  17. - (void)viewDidLoad
  18. {
  19. [super viewDidLoad];
  20. self.lblGuide.text=[NSString stringWithFormat:@"%@", strFromUnlinkPage];
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement