摘要: 碰到这样的错误: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... 阅读全文
posted @ 2013-11-07 13:48 ubersexual 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 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 ,或者参数可以 阅读全文
posted @ 2013-11-07 12:33 ubersexual 阅读(569) 评论(0) 推荐(0) 编辑