Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let url: NSURL = NSURL(string: "http://hogehoge.com/1.jpg")!
- let req = NSURLRequest(URL:url)
- NSURLConnection.sendAsynchronousRequest(req, queue:NSOperationQueue.mainQueue()){(res, data, err) in
- let img = UIImage(data:data!)
- cell!.thumb.image = img
- }
- let url2: NSURL = NSURL(string: "http://hogehoge.com/2.jpg")!
- let req2 = NSURLRequest(URL:url2)
- NSURLConnection.sendAsynchronousRequest(req2, queue:NSOperationQueue.mainQueue()){(res2, data2, err2) in
- let img2 = UIImage(data:data2!)
- cell!.thumb2.image = img2
- }
- let url3: NSURL = NSURL(string: "http://hogehoge.com/3.jpg")!
- let req3 = NSURLRequest(URL:url3)
- NSURLConnection.sendAsynchronousRequest(req3, queue:NSOperationQueue.mainQueue()){(res3, data3, err3) in
- let img3 = UIImage(data:data3!)
- cell!.thumb3.image = img3
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement