(1)引用Assets.xcassets中的图片
flashBtn.setImage(UIImage(named: "btn_enableTorch_w"), for: .normal)
(2)引用bundle中的图片
style.animationImage = UIImage(named: "CodeScan.bundle/qrcode_scan_part_net")
(1)引用Assets.xcassets中的图片
flashBtn.setImage(UIImage(named: "btn_enableTorch_w"), for: .normal)
(2)引用bundle中的图片
style.animationImage = UIImage(named: "CodeScan.bundle/qrcode_scan_part_net")
本文标题:swift-引用图片
本文链接:https://www.haomeiwen.com/subject/gsmxuqtx.html
网友评论