ios - Can I make only a certain portion of a tableview clickable? -
i'm trying add button in tableview if click anywhere in tableview, goes detailsvc. want make when click button, selected. there way make top half of tableview can selectable or have interaction enabled, , put button below? or there way this. there workaround or method missing. thanks
are sure uibutton added correctly table view cell's .contentview? can see it? if intercept touch events , tableview's delegate didselectrowatindexpath won't called (even if there's no handling connected button). if want make button occupy specific area of cell can either:
- design cell in interface builder , make part of storyboard/xib
- do autolayout of cell programmatically
- override cell's layoutsubviews , manually setup frames
Comments
Post a Comment