sbjson

SBJSON parsing NSString to NSDictionary

こ雲淡風輕ζ 提交于 2019-12-07 22:17:22
问题 I'm trying to parse an NSString that contains JSON data into an NSDictionary using SBJson 3.0.4, but when I do it, I get this error: "WebKit discarded an uncaught exception in the webView:shouldInsertText:replacingDOMRange:givenAction: delegate: -[__NSCFString JSONValue]: unrecognized selector sent to instance 0x6ab7a40" As far as I know (which isn't very far), the JSON I'm getting is valid, so I don't know why this is happening. My code compiles fine too… Here it is: NSString *tempURL =

Error with iOS 5.1 when i use ASIHTTPRequest and SBJSON

﹥>﹥吖頭↗ 提交于 2019-12-07 04:48:18
问题 i am getting this error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref in FirstViewController.o "_OBJC_CLASS_$_SBJsonParser", referenced from: objc-class-ref in FirstViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) Note i have added the frameworks core graphics,system configuration,mobile core services,libz.dylib,libz.1.2.5.dylib,CF Network

SBJSON parsing NSString to NSDictionary

六眼飞鱼酱① 提交于 2019-12-06 14:17:48
I'm trying to parse an NSString that contains JSON data into an NSDictionary using SBJson 3.0.4, but when I do it, I get this error: "WebKit discarded an uncaught exception in the webView:shouldInsertText:replacingDOMRange:givenAction: delegate: -[__NSCFString JSONValue]: unrecognized selector sent to instance 0x6ab7a40" As far as I know (which isn't very far), the JSON I'm getting is valid, so I don't know why this is happening. My code compiles fine too… Here it is: NSString *tempURL = [NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/geocode/json?address=%@&sensor=true"

iOS AFNetworking - ASP.NET Web API .ASPXAUTH storage and deletion

孤街醉人 提交于 2019-12-06 12:13:23
问题 I'm using the AFNetworking Framework for iOS. I've subclassed AFHttpClient and are using it as a singleton, i.e. [TestAFClient sharedClient] I'm consuming an ASP.NET Web Service API that requires the use of the .ASPXAUTH cookie. First I have to authenticate, receive the .ASPXAUTH cookie in response, and then must pass this cookie with each subsequent request. After a few tests, it appears that, because I'm using a singleton AFHTTPClient, the .ASPXAuth cookie persists and, thus, no explicit

Duplicate Symbol SBJSON on iOS Facebook SDK V 3.0

大城市里の小女人 提交于 2019-12-06 11:29:41
问题 In the current project, I used SBJSON everywhere and got it working fine with the previous version of iOS Facebook SDK since SBJSON was included in Facebook SDK. I just upgraded to iOS Facebook SDK version 3.0 and having problem with SBJSON. The first thing it complaint was about NOT finding SBJSON header file. So I thought, I could manually include the SBJSON lib into the project. After I did that, then the compiler complaint that the SBJSON symbol was duplicated with the Facebook SDK. I

Duplicate Symbol Error: SBJsonParser.o?

最后都变了- 提交于 2019-12-06 03:17:55
问题 I currently have ShareKit in my project that is compiled as a static library. It is properly implemented. I also have implemented Amazon's AWS SDK by just adding their framework into my project. It seems that the duplicate symbol is coming from Amazon's AWS SDK file, "AWSIOSSDK". This is what it looks like: And that file is colliding with ShareKit's file, libShareKit.a. This is what that file looks like: Anyway both of these files are ones that I haven't seen before. And it seems that some

Display records of next page in json in uitableview on scrolling the tableView when I reach the last record

微笑、不失礼 提交于 2019-12-04 22:01:24
I am trying to make an application that uses SBJSON and ASIHTTPRequest containing 273 pages (50 records in each page)in json. When I scroll the tableView I want to get next 50 records when I reach the last record.Currently I am getting only the first 50 records. How will I get all the records? I am using Xcode 6 objective c. //Here I am taking the json data on view load - (void)viewDidLoad { [super viewDidLoad]; main_array = [[NSMutableArray alloc] init]; NSURL *countryURL = [NSURL URLWithString:@"http://api.worldbank.org/countries/all/indicators/SP.POP.TOTL?format=json"]; ASIHTTPRequest

how to parse a JSON string in iphone Objective - C?

吃可爱长大的小学妹 提交于 2019-12-04 21:45:26
Hi i am trying to parse a JSON string in iphone and so far i have been able to get JSON VALUE correctly but after that i am geting an error: -[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x62242e0 2011-08-16 16:11:58.792 BleepBleep[4083:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x62242e0' *** Call stack at first throw: ( 0 CoreFoundation 0x010a9be9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x011fe5c2 objc_exception_throw + 47 2 CoreFoundation 0x010ab6fb

Duplicate Symbol SBJSON on iOS Facebook SDK V 3.0

北城以北 提交于 2019-12-04 16:51:23
In the current project, I used SBJSON everywhere and got it working fine with the previous version of iOS Facebook SDK since SBJSON was included in Facebook SDK. I just upgraded to iOS Facebook SDK version 3.0 and having problem with SBJSON. The first thing it complaint was about NOT finding SBJSON header file. So I thought, I could manually include the SBJSON lib into the project. After I did that, then the compiler complaint that the SBJSON symbol was duplicated with the Facebook SDK. I could not find the SBJSON.h anywhere in FB SDK headers. So at the end, I went into a loop of problems.

iOS AFNetworking - ASP.NET Web API .ASPXAUTH storage and deletion

荒凉一梦 提交于 2019-12-04 16:44:04
I'm using the AFNetworking Framework for iOS. I've subclassed AFHttpClient and are using it as a singleton, i.e. [TestAFClient sharedClient] I'm consuming an ASP.NET Web Service API that requires the use of the .ASPXAUTH cookie. First I have to authenticate, receive the .ASPXAUTH cookie in response, and then must pass this cookie with each subsequent request. After a few tests, it appears that, because I'm using a singleton AFHTTPClient, the .ASPXAuth cookie persists and, thus, no explicit storage of the cookie is required. However, as part of my App, I need to "logout" at some point. What is