Я хочу преобразовать изображение в своей базе данных, чтобы получить его в моих приложениях iAd, и для этого я использую JSON, но я не выполняю его должным образом.
Внутри моей кнопки на Touch я написал этот код
//create string contain url address for php file, the file name is phpFile.php,it receives parameter :name
NSString *strURL=[NSString stringWithFormat:@"....my.php","hhhhh"];
//to execute php code
NSData *dataURL=[NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]];
//to receive the returned Result
NSString *strResult = [[[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding]self];
NSLog(@"%@",strResult);