Types of PList? Type of application / x-plist

I try to use AFNetworking AFPropertyListRequestOperation, however, when I try to load it, I get an error

Expected content type {( "application/x-plist" )}, got application/xml"

I did some research that application / xml seems to be the type that is created when it comes to iOS. How to create a PLIST template in application / x-plist format? I tried making plutil but it didn't seem to work.

Thanks!

+4
source share
1 answer

You can add the application/xml content type to AFPropertyListRequestOperation using the addAcceptableContentTypes method:

 [AFPropertyListRequestOperation addAcceptableContentTypes:[NSSet setWithObject:@"application/xml"]; 
+7
source

All Articles