ios - XCode: String URL to Image -


how can convert image url (string) image in xcode (objective-c)? have images in url. , want make array images how images. can read in iphone aplicatioon. help!

nsdata *data = [nsdata datawithcontentsofurl : url]; uiimage *image = [uiimage imagewithdata: data]; 

just remember -datawithcontentsofurl: synchronous call , should not performed on main thread.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -