que he tenido un poco de suerte usando plists ...
Usted tendrá que instalar la gema plist-3.0.0 (joya instalar plist IIRC)
Luego, en el controlador de configuración que algo como esto:
plist = {'a' => 'b', 'c' => 'd', 'e' => {'f' => 'g', 'h' => {'i' => 'j'}}}.to_plist
render(:text => plist)
Luego, en su iphone configuración de aplicación algo como esto:
NSURL *url = [NSURL URLWithString:@"http://somewhere.com"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
NSURLResponse *response;
NSError *error;
NSData *plistData;
plistData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSPropertyListFormat format;
NSString *errorStr;
id imagesToRate = [NSPropertyListSerialization propertyListFromData:plistData mutabilityOption:NSPropertyListImmutable format:&format errorDescription:&errorStr];
if(!imagesToRate) {
NSLog(errorStr);
} else {
NSLog(@"%@", [imagesToRate objectForKey:@"e"]);
}
Obtienes toda la libertad de usar json (como en, no tienes que implementar tu propio esquema xml para formatear tus datos, y la serialización es tan fácil como una llamada a_plist) además, el sdk viene con código nativo para manejando plists.
Pero, si todo listo tiene un servicio web que devuelva en JSON/XML es posible que desee mantener eso y analizar las cosas en el iPhone usando el material ya se ha mencionado (TouchXML, JSON-marco)
suena interesante, también lo verificare. – frankodwyer
Cuanto más miro esto, más me gusta. Voy a probar esto primero. – frankodwyer