リモート データベースにリンクされたアプリを作成する必要があります。mysql は最適なソリューションですか? Sqlite はローカルのみのソリューションですか?
私は次の方法を使用していますが、それが最善の方法であるかどうかを知りたいです!
NSString *evento = @"1";
NSString *filtro = @"CAC2";
NSString *strURL = [NSString
stringWithFormat:@"http://www.xxxxxxx.com/Scripts/Evento/WIGriceviTipo.php?
evento=%@&filtro=%@",evento, filtro];
NSData *dataURL = [NSData dataWithContentsOfURL:
[NSURL URLWithString:strURL]];
NSString *strResult = [[NSString alloc] initWithData:dataURL
encoding:NSUTF8StringEncoding];
strResult = [strResult stringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceAndNewlineCharacterSet]];
mostra.text=strResult;
NSLog(@"%@", strResult);