Assign and implement delegates for synchronous and asynchronous user registration.
LiteSUPUserManager* userManager = [LiteSUPUserManager getInstance:@"APP_ID"]; [userManager setDelegate:self]; [userManager setDidFailToRegisterUser:@selector(regFailed:)]; [userManager setDidSuccessfulUserRegistration:@selector(regSuccess:)]; [userManager setConnectionProfile:@"10.53.222.37" withSupPort:5001 withServerFarmID:@"0"];
-(void)regFailed:(NSError*)error{ UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[error localizedDescription] delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } -(void)regSuccess:(id)sender{ UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Success" message:@"User Registration Successful" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release];