sojitra jigar sojitra jigar - 1 year ago 80
Swift Question

how can i create custom class of uiimageview - swift

i can create custom uiimageclass file and pass different image in image view class file.

please tell me how to create it in swift 2.

Thanks in Advance

Answer Source

as i understand from question you asking this snippet

class CustomImageView:UIImageView {

let image = UIImage(named: "some-image")
let imageView = CustomImageView(image: image)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download