我已經解決了一些Parse API的問題,然後簡短地開始教程;解析API的JSON反序列化IOS
這裏是我的代碼:
#import "AppDelegate.h"
#import <Parse/Parse.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Ovrride point for customization after application launch.
[Parse setApplicationId:@"8cyxBir0KXluAqQCBqjT4loQy7GpcCCSqYlpqLfG"
clientKey:@"PVjBALJsToq5XRldBC0KHG0INQQdh4wE7xzWmfy1"];
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
PFObject *testObject = [PFObject objectWithClassName:@"TestObject"];
testObject[@"foo"] = @"bar";
[testObject saveInBackground];
return YES;
}
@end
我的錯誤信息是:
2014-02-21 19:12:23.332 Youtuber[6590:3e07] JSON deserialization failed. Error trace is: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (Garbage at end.) UserInfo=0x9a80360 {NSDebugDescription=Garbage at end.} 2014-02-21 19:12:23.333 Youtuber[6590:3e07] Error: (null) (Code: 0, Version: 1.2.18) 2014-02-21 19:12:23.334 Youtuber[6590:390f] runEventually command failed. Error:Error Domain=Parse Code=0 "The operation couldn’t be completed. (Parse error 0.)"
我想打一個應用程序與解析YouTube用戶(parse將會給人以視頻的名稱的數組,描述,和URL(這是可能的?,我不知道解析,這是不可能的,你有任何教程或代碼示例,我可以在列表視圖中從youtuber檢索所有上傳的視頻?)
我收到了同樣的錯誤,在我的結束。我無法弄清楚,問題是什麼! –
使用Charles查看發送和接收的內容... – Wain
可能來自他們的服務器,或者他們的教程已過時,我會在他們的論壇上詢問並希望得到答案 – user3337178