objective c - How to access an ImageView in my Custom TableviewCell without making its outlet -
i have imageview in tableview cell xib, want access image view in viewcontroller don't want make outlet of imageview i.e. in cell can access cell in viewcontroller ,so how can make access image view.
in advance
i assume you're wanting find imageview in code's cellforrowat function, can set image.
in design of cell, give uiimageview tag (eg. 7). within code after have retrieved cell, can find imageview using:
let imageview = cell.viewwithtag(7) as! uiimageview
Comments
Post a Comment