:Objective-CではObjective-CでPHP配列を読み込むにはどうすればよいですか?私はPHPで
$result = mysql_query($query);
// if successful query, return the records
if ($result)
{
// if not empty result, return array of records
if (mysql_num_rows($result))
{
$records = array();
while ($row = mysql_fetch_assoc($result))
{
$records[] = $row;
}
return $records;
}
}
を - POST後、私は、次のコードを持っている...
NSURLResponse *newStr = [[NSURLResponse alloc] init];
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:&newStr error:nil];
returnDataリテラル "アレイ"、ではないコンテンツに等しいです。 of $ records []
すべての良い応答。 Dreamlax、良いアイデア。これは私にとって今より多くの意味を持ちます。特にJSONに慣れていないからです。ありがとう! – Jordan