Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (IBAction)registerUser:(id)sender
  2. {
  3.     LoginLogics *login = [[LoginLogics alloc] init];
  4.     NSInteger userId = [login AddNewMobileUserWithSource:pickupSportsFirstName.text
  5.                                                 LastName:pickupSportsLastName.text
  6.                                                    Email:@"" //future proof
  7.                                                 Password:@"" //future proof
  8.                                           SourceUniqueId:[Pickup_SportsAppDelegate deviceID]
  9.                                                   Gender:pickupSportsGender.selectedSegmentIndex + 1
  10.                         ];
  11.    
  12.     [self.navigationController dismissModalViewControllerAnimated:YES];
  13. /*
  14.     [login release];
  15.  
  16.     [self.navigationController dismissModalViewControllerAnimated:YES];
  17.  
  18.     [login release];
  19.     if(userId != 0)
  20.     {
  21.         [self.navigationController dismissModalViewControllerAnimated:YES];
  22.     }
  23.     else {
  24.         [Common AlertBoxSingleButton:@"Sorry"
  25.                              message:@"There seems to be some problem at registering, please try again later"
  26.                           buttonName:@"Ok"];
  27.     }*/
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement