sojitra jigar sojitra jigar - 5 months ago 16
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

as i understand from question you asking this snippet

class CustomImageView:UIImageView {

}
let image = UIImage(named: "some-image")
let imageView = CustomImageView(image: image)