title: Quickblox - How to register New user in QuickBlox API
body: <p>I'm new to iOS. I'm using custom authentication. I've checked sample code and i'm confused, how they are updating registered user in user panel while user is logged in. </p>
  
  <p>Please tell How should i use their code, i downloaded and run their sample code but it is outdated and gives so many errors.</p>
  
  <p>My authentication code while log in - </p>
  
  <pre><code>- (IBAction)signIn:(id)sender
  {
    indicator.center = CGPointMake(160, 200);
    [self.view addSubview:indicator];
    [indicator startAnimating];
    NSString* urlString = [NSString stringWithFormat:@"http:***********************",userName.text,passWord.text];
    NSURL *add = [NSURL URLWithString:urlString];
    NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:add];
    (void) [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self];
  
   [QBRequest createSessionWithSuccessBlock:^(QBResponse *response, QBASession *session)
   {
       // session created
       QBUUser *user = [QBUUser user];
       //user.password = @"azhhdsf";
       //user.login = @"dsfgsgf";
  
       user.login =  userName.text;
       user.password = passWord.text;
  
  
       // Registration/sign up of User
       [QBRequest signUp:user successBlock:^(QBResponse *response, QBUUser *user)
        {
            // Sign up was successful
        } errorBlock:^(QBResponse *response)
        {
            // Handle error here
            NSLog(@"error while signing up with QB");
        }];
    }
                                errorBlock:^(QBResponse *response)
    {
       // handle errors
       NSLog(@"%@", response.error);
   }
  
    ];
   }
  </code></pre>
  
  <p>Getting Thread Error--></p>
  
  <p><strong>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[QBRequest createSessionWithSuccessBlock:errorBlock:]</strong></p>
  
  <p>I'm running their sample code for log in <strong><a href="http://quickblox.com/developers/SimpleSample-users-ios#Adding_a_User_Base_to_your_application" rel="nofollow">http://quickblox.com/developers/SimpleSample-users-ios#Adding_a_User_Base_to_your_application</a></strong> but getting error -</p>
  
  <pre><code>Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_MTBlockAlertView", referenced from:
     objc-class-ref in SSUEditViewController.o
     objc-class-ref in SSULoginViewController.o
     objc-class-ref in SSUMainViewController.o
     objc-class-ref in SSURegistrationViewController.o
   ld: symbol(s) not found for architecture i386
  linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>As I'm new to iOS, so i could resolve this errors..</p>