Xcode iPhone Programming: Loading a jpg into a UIImageView from URL

前端 未结 5 1775
忘了有多久
忘了有多久 2020-12-12 16:35

My app has to load an image from a http server and displaying it into an UIImageView
How can i do that??
I tried this:

NSString *temp = [NSStrin         


        
5条回答
  •  無奈伤痛
    2020-12-12 17:06

    And because loading image from URL takes ages, it would be better to load it asynchronously. The following guide made it stupid-simple for me:

    http://www.switchonthecode.com/tutorials/loading-images-asynchronously-on-iphone-using-nsinvocationoperation

提交回复
热议问题