1
2
3
|
let
imageView=
UIImageView
(image:
UIImage
(named:
"icon"
))
imageView.frame=
CGRectMake
(10,10,100,100)
self
.view.addSubview(imageView)
|
2,改变图片
imageView.image=
"icon2"
)
|