Bug 6542 - UITableViewSource.AccessoryButtonTapped() not called
Summary: UITableViewSource.AccessoryButtonTapped() not called
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-15 14:11 UTC by Mike Lorenz
Modified: 2012-08-15 16:18 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Mike Lorenz 2012-08-15 14:11:25 UTC
It seems that when you override AccessoryButtonTapped() in a UITableViewSource class, the function never gets called.

This is happening in two of my projects, but the best example I can offer is from the Xamarin site:

http://docs.xamarin.com/ios/tutorials/Working_with_Tables_and_Cells
Select "CellAccessoryTable.zip" - http://docs.xamarin.com/@api/deki/files/2424/=CellAccessoryTable.zip

Run this project and you'll see that it never executes the code in this function, no matter where you tap on the table:

public override void AccessoryButtonTapped (UITableView tableView, NSIndexPath indexPath)
{
    new UIAlertView("DetailDisclosureButton Touched"
        , tableItems[indexPath.Row].Heading, null, "OK", null).Show();
}
Comment 1 Mike Lorenz 2012-08-15 16:18:02 UTC
I wasn't aware that AccessoryButtonTapped() is only called when the accessory type is UITableViewCellAccessory.DetailDisclosureButton. So this is not a bug.