ios - Get button click on UITableView in Swift -
i have simple table view looks
each button overflows part next cell (part of requirement).
i want overflowing button's click event. how ?
by default taking cell click rather button click if click on overflowing part.
i have created dummy code changes button color on click, easy try out. same layout.
thanks
edit
below original image , trying , simplicity sake scaled down button lets assume req u cant change height , cant play around table view separator
you have implement 'tableview:heightforrowatindexpath:` method , return greater value has now. cells don't have enough height display buttons fully, , because of part of button hides behind of next cell. can convinced checking "clip subviews" checkbox of cell prototype in interface builder, , if see buttons clipped.
edit
check this: https://github.com/arturdev/test
Comments
Post a Comment