Let's swift - ios入門app教學
顯示具有
image url
標籤的文章。
顯示所有文章
顯示具有
image url
標籤的文章。
顯示所有文章
2016年5月4日 星期三
[小技巧]image url 轉成圖
var
imgURLString =
"
http://graph.facebook.com/
"
+ (fid
as
String
) +
"/picture?type=large"
let
imgURL =
NSURL
(string: imgURLString)
let
imageData =
NSData
(contentsOfURL: imgURL!)
let
image =
UIImage
(data: imageData!)
self
.
HeadImage
.
image
= image
較舊的文章
首頁
訂閱:
文章 (Atom)