iTofu / LCBannerView

A very popular and highly customized banner view! Infinite loop support!

Home Page:https://LeoDev.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect which image was pressed in tableview cell

ac1dpax opened this issue · comments

Is it possible to detect which image was pressed in which cell of tableview?

I add LCBannerView as subview of cell view, and have array of photos loaded in lot of cells, how can I detect in which cell photo did pressed? many thanks!

commented

You could give bannerView a tag, equal to indexPath.row, in method tableView: cellForRowAtIndexPath:.
Than you could get bannerView with delegate method when image be pressed, and also, you could get indexPath.row.
The hope to help you :)

Thanks!