1
我是ios的新開發者。有沒有一種方法可以在UILabel上添加UIImageView?我試過,但圖像是從的UILabel在UILabel上添加圖片Swift
隱藏:(
var imageTick:UIImage = UIImage(named: "Trash-icon.png")
var imageView:UIImageView = UIImageView(frame: CGRectMake(self.bounds.size.width-50, self.bounds.size.height/2, 30, 30))
imageView.image = imageTick
labelTick.addSubview(imageView)
self.addSubview(labelTick)