1
Comment puis-je obtenir un UIImage
à partir d'un petit fichier image sur mon serveur (peut être .jpg
ou .png
)?Comment obtenir un UIImage à partir d'un fichier image sur mon serveur?
Comment puis-je obtenir un UIImage
à partir d'un petit fichier image sur mon serveur (peut être .jpg
ou .png
)?Comment obtenir un UIImage à partir d'un fichier image sur mon serveur?
Essayez ceci:
NSString* url = @"http://my.server.com/image.png";
NSData* data = [NSData dataWithContentsOfURL:url];
UIImage* image = [UIImage imageWithData:data];
Voir aussi:
[NSData dataWithContentsOfURL:options:error:]