sojitra jigar sojitra jigar - 9 months ago 32
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


as i understand from question you asking this snippet

class CustomImageView:UIImageView {

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