Pages

Friday, March 22, 2013

i have problem with nsuser at login

i have problem with this i want want to login with another view controller the username and password recive from webservices

 

and responce string return the 0 and 1

 

NSString *responseString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];

    NSLog(@"responcestring%@",responseString);

  

 

 

    if([responseString isEqualToString:false] )

   {

       UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"WRONG USER" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];

       [alert show];

       [alert release];

 

      

 

          }

     else {

         [prefs setObject:@"true" forKey:@"login"];

         [prefs synchronize];


View the original article here

0 comments:

Post a Comment