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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -