AFPropertyListRequestOperation で AFNetworking を使用して、plist をダウンロードして使用しようとしています。AFNetworking が plist の形式などを好まないように見えるため、どういうわけかこれは機能していません。ブロックは発射さえされません。代わりに、エラー ブロックが発生します。
これがなぜであるかについてのヒントはありますか?
NSURL *url = [NSURL URLWithString:@"https://dl.dropboxusercontent.com/u/9358444/iOS/zet.plist"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
AFPropertyListRequestOperation *operation = [AFPropertyListRequestOperation propertyListRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id propertyList) {
//do something
NSDictionary *myDic = (NSDictionary *)propertyList;
NSLog(@"%@", myDic);
NSLog(@"Fired PLIST");
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id propertyList) {
//error
NSLog(@"Error PLIST");
}];
[operation start];