48815

Disclosure Indicator doesn't call seque while Detail Disclosure does

I have an interesting problem. I'd like to have detail screen pop up when people click on the arrow in the Table View. The cells are dynamic.

When I select Disclosure Indicator - I do not get the segue called and and I don't get accessoryButtonTappedForRowWithIndexPath called either. When I change it to Detail Disclosure everything works just fine.

Any guesses to what I can do to make the disclosure indicator act just like the detail disclosure?

Thanks!

Answer1:

Disclosure indicators are not buttons and therefore do not cause the tableView:accessoryButtonTappedForRowWithIndexPath: delegate method to fire, while a detail disclosure is a button and therefore does fire that method.

The best you can hope to do, I imagine, is to add a UIButton to your table view cell and give it an image that very closely resembles the default table view disclosure indicator. This is kind of a hacky solution though, so I would discourage you from actually doing this.

Recommend

  • InAppSettingsKit - set a button to have a disclosure icon?
  • Automated Azure SQL DB export fails - indexing for document type .xml is not supported on MS Azure S
  • How to update CVV of stored credit card on braintree [closed]
  • when the right arrow is not shown in my cell
  • how to remove the focus on disclosure panel's header
  • iPhone Dev: Create own index
  • WooCommerce single product custom Tab displaying a page content
  • Xcode 8 says “Do you want to add a stub?” How do I answer?
  • worklight console for app not working after deploying new war
  • finding node values DOM with in Java
  • Password protect GitLab pages with htpasswd
  • Creating an expandable UITableView [closed]
  • Delegation - Change variables from different viewsControllers
  • Disclosure Indicator doesn't call seque while Detail Disclosure does
  • iOS Swift 2.0 UITextView freezes app depending on text
  • How to create a segue from the disclosure indicator on a table view to another viewController?
  • How do I access text in UITextField from another ViewController (Swift)?
  • UISplitViewController not calling delegate methods while pushing new detailView
  • How would you save(append) data from one View Controller to another View Controller when you segue f
  • jQuery .on() not bound when script inserted into the DOM
  • Apple Watch page based interface overflowing on initial controller
  • Send money from Braintree
  • Best approach for UITableViewCell with both a left and right label
  • segue from landscape only to portrait only
  • Is it possible to access block's scope in method?
  • Meteor: Do Something On Email Verification Confirmation
  • Google Custom Search with transparent background
  • How to check if every primary key value is being referenced as foreign key in another table
  • MySQL WHERE-condition in procedure ignored
  • Display Images one by one with next and previous functionality
  • ORA-29908: missing primary invocation for ancillary operator
  • How to get next/previous record number?
  • Why winpcap requires both .lib and .dll to run?
  • How to set the response of a form post action to a iframe source?
  • How do you join a server to an Active Directory (domain)?
  • How does Linux kernel interrupt the application?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • unknown Exception android