NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"riderfinder.appspot.com/login"]];
[request setHTTPMethod:@"POST"];
[request setValue:@"text/plain"
forHTTPHeaderField:@"Content-type"];
NSString *body = @"username=";
[body stringByAppendingString:accountEntered];
[body stringByAppendingString:@"&"];
[body stringByAppendingString:@"password="];
[body stringByAppendingString:passwordEntered];
NSMutableData *data = [[NSMutableData data] initWithString:body];
//Crashes everything with "SIGABRT" warning/error. Nothing else is said.
[request setHTTPBody:data];
如果有人知道出了什么问题,我将不胜感激。我通过 Apple 的调试器将其缩小到导致崩溃的最后一行。非常感谢!