migueldeicaza / MonoTouch.Dialog

Tools to simplify creating dialogs with the user using MonoTouch
MIT License
430 stars 211 forks source link

AccessoryButtonTapped is not called when overriding it #236

Open therealjohn opened 8 years ago

therealjohn commented 8 years ago

See https://bugzilla.xamarin.com/show_bug.cgi?id=15329

therealjohn commented 8 years ago

Looking at this more, it seems it will file here.

Overriding in a DialogViewController won't work, but you do have access to the AccessoryTapped event for each Element which does get fired.

therealjohn commented 8 years ago

It might be better to change this to call Container.AccessoryButtonTapped(tableView, indexPath); instead. This would let the user override the AccessoryButtonTapped method in a DialogViewController subclass and have access to the index of the element that was tapped.

Right now it's assumed it's always a StyledStringElement and there is info for index in the event.