摘要:
碰到这样的错误:JSONValue failed. Error is: Unescaped control character [0x09]有如下解决方案: 1 -(NSString *)removeUnescapedCharacter:(NSString *)inputStr 2 { 3 4 NSCharacterSet *controlChars = [NSCharacterSet controlCharacterSet]; 5 6 NSRange range = [inputStr rangeOfCharacterFromSet:controlChars]; 7 8 if (r... 阅读全文
摘要:
1 NSString *postURL = [NSString stringWithFormat:@"http://xxxxxx.php?mod=%@&data=%@", mod, data];2 3 NSLog(@"发送注册请求URL:%@", postURL);4 5 ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:[NSURL URLWithString:postURL]];6 7 [request startSynchronous];如果是 Get ,或者参数可以 阅读全文