[parser setDelegate:self];

Tenche

New Member
\[code\]NSString* username = [[NSUserDefaults standardUserDefaults] stringForKey:mad:"username_preference"];NSString* accountPassword = [[NSUserDefaults standardUserDefaults] stringForKey:mad:"password_preference"];NSString* urlString = [NSString stringWithFormat:mad:"https://%@:%@@testing.com/test.php",username,accountPassword]; NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:urlString]];NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;int status = [httpResponse statusCode];if (!((status >= 200) && (status < 300))) { NSLog(@"Connection failed with status %@", status); [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;} else { NSXMLParser* xmlparser = [[NSXMLParser alloc] initWithData: response]; NSLog(@"at parser %@", xmlparser); [parser setDelegate:self];\[/code\]The last line of the code is showing me error and suggest that "change parser to pause"!! Please help!!
 
Top