ios - How to open new ViewController after click(touch) on ImageView? -
i have tableviewcontroller custom cells.
for table responsible class:
@interface customtableviewcontroller : uitableviewcontroller for cells responsible class:
@interface customtableviewcell : uitableviewcell the imageview located in cell of table.
how can open new controller when click(touch) @ imageview inside cells?
as appears must use uiviewcontroller near uitableviewcell open new viewcontroller, not?
usually kind of stuff handled inside uitableviewdelegate method didselectrowatindexpath. table view calls method when entire cell tapped.
if want trigger action image, might have add uitapgesture image view. not forget image views have userinteractionenabled set false default. there 2 ways communicate tap event view controller can think of right now. either delegation or closure. latter 1 requires less code.
Comments
Post a Comment