Bug 41551 - Overriding UITableViewController WillDisplay
Summary: Overriding UITableViewController WillDisplay
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.6 (iOS 9.3)
Hardware: PC Windows
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Alex Soto [MSFT]
Depends on:
Reported: 2016-06-07 11:54 UTC by Paul
Modified: 2016-08-30 04:28 UTC (History)
3 users (show)

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

Native stack trace (4.04 KB, text/plain)
2016-06-07 11:54 UTC, Paul

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:

Description Paul 2016-06-07 11:54:30 UTC
Created attachment 16214 [details]
Native stack trace

1. Create a custom TableViewController through the storyboard
2. In the custom class that inherits from UITableViewController, override 'WillDisplay' method with the preset code:

        public override void WillDisplay(UITableView tableView, UITableViewCell cell, NSIndexPath indexPath)
            base.WillDisplay(tableView, cell, indexPath);

3. Code will crash with: 

Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[myCustomTableViewController tableView:willDisplayCell:forRowAtIndexPath:]: unrecognized selector sent to instance 0x7cd39c30
Comment 1 Alex Soto [MSFT] 2016-06-07 19:57:44 UTC
Hello I tried to reproduce this locally but I was not able to get a crash nor any MonoTouchException. Could you create a self contained test case and attach to this bug report that reproduces this issue?

Also please include your full build logs, crash reports (if any)
and all version informations.

The easiest way to get exact version information is to use the 
"Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" 
button and copy/paste the version informations (you can use the 
"Copy Information" button).
Comment 2 Alex Soto [MSFT] 2016-08-30 04:28:21 UTC
We have not received the requested information. If you are still 
experiencing this issue please provide all the requested information 
and re-open the bug report. Thanks!