I've implemented a custom UIView
and have assigned this CustomUIView
to the File's Owner
, I outlet-ed a UIImageView
in the CustomUIView
as below
@IBOutlet weak var messageCardView: UIImageView!
And I've implemented init
function:
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
messageCardView.image = UIImage(named: "img_1")
messageCardView.alpha = 0.5
}
I'd like the alpha attribute and image showing in my xib static file, is there any way to do that? Great thanks!