sbjson

    6热度

    4回答

    我收到此错误: Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref in FirstViewController.o "_OBJC_CLASS_$_SBJsonParser", referenced from:

    2热度

    1回答

    我试图解析包含JSON数据到一个NSDictionary使用SBJson 3.0.4一个NSString,但是当我这样做,我得到这个错误: "WebKit discarded an uncaught exception in the webView:shouldInsertText:replacingDOMRange:givenAction: delegate: -[__NSCFString JS

    -1热度

    2回答

    我正在实现SBJSON来从Web服务中获取数据。我在“ConnectionDidFinishLoading”代码如下: NSString *responseString = [[NSString alloc] initWithData:responseData encoding: NSUTF8StringEncoding]; NSLog(@"Response String %@", r

    1热度

    3回答

    我想在这里学习本教程http://ios-blog.co.uk/iphone-development-tutorials/parsing-json-on-ios-with-asihttprequest-and-sbjson/在同一时间做两件事的ASIHttp和SBJSon教程的时候,一切都很好,直到行 NSMutableArray *colorTitles = [jsonDictionary ob

    2热度

    1回答

    它应该是如此简单,但我无法得到它的工作。 JSON响应为 ([{“id”:“1”,“x”:“1”,“y”:“2”},{“id”:2,“x”:“2” , “Y”: “4”}]) NSString *response = [request responseString]; //response is ([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "

    2热度

    3回答

    我用泄漏找到与SBJsonParser相关的内存泄漏我不明白为什么我得到它?我希望有人能够提供一些见解。 泄漏报告泄漏来自名为objectWithURL的方法。该方法是从名为downloadJSONFeed的方法调用的。我已经在下面显示。 任何洞察赞赏。 - (id) objectWithUrl:(NSURL *)url { SBJsonParser *jsonParser = [S

    0热度

    1回答

    我的JSON响应是 [{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y":"4"}] 而且我也 NSString *response = [request responseString]; SBJSON *parser = [[SBJSON alloc] init]; NSArray *jsonObject = [parser object

    3热度

    1回答

    我试着将相同的NSDictionary对象转换成NSData,然后NSString使用NSJSONSerialization和SBJsonWriter几次,有时会得到不同的字符串。甚至为空。这很奇怪,我找不到任何理由。 =(JSONKit和YAJL没有这样的问题。 以下是我的测试代码。 for (int i = 0; i < 5; i++) { NSDictionary *d = [NS

    2热度

    1回答

    我写了一个方法: -(id)postAndParseJson:(NSMutableDictionary *)theDictionary action:(NSString *)action type:(NSString *)myType { NSString *newJSON = [theDictionary JSONRepresentation]; NSLog(@"what

    2热度

    1回答

    我正在使用AFNetworking Framework for iOS。我已经将子类型AFHttpClient并将其用作单例,即[TestAFClient sharedClient] 我正在使用需要使用.ASPXAUTH cookie的ASP.NET Web服务API。首先,我必须进行身份验证,接收.ASPXAUTH cookie作为响应,然后必须将此cookie随每个后续请求一起传递。 经过几次