xcode - Dropdown UIView inside UITableView Section Headers -


i need add customised dropdown uiview uitable section header part of design requirements. have added the dropdown uiview section header when try click on title inside dropdown, wouldn't recognise have make selection on dropdown uiview, instead fire off didselectrowatindexpath of big uitableview underneath. seems can't make selection of items display outside section header height if it's added section header.

see image

i'm not using uitableview popup uiview. each row uibutton , attached touch inside event listener. when try click on buttons, wouldn't detect clicked on buttons take i've clicked on cupertino. tag attached each each button.

this example of how handle event.

-(ibaction)menubuttonpressed:(uibutton *)sender {     [sender setselected:!sender.isselected];      switch (sender.tag)      {         case 0:                  #do         break;          case 1:                  #do         break;    } } 

when try expand section header height, buttons fall inside section header can clicked. e.g. title 1 can clicked title 2 , 3 cannot.

if project not restrict use third party library, suggest using fppopover. customisable , can make yours if want to. plus has method buttonclicked can use solve problem. behaves uipopover can use on iphone well.

hope helps


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -