Bug 27293 - Overriding cell's WillMoveToSuperview in conjunction with DequeueReusableCell(NSString, NSIndexPath) disables editing of UITextField
Summary: Overriding cell's WillMoveToSuperview in conjunction with DequeueReusableCell...
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
Depends on:
Reported: 2015-02-22 20:43 UTC by Kent
Modified: 2015-02-24 11:28 UTC (History)
3 users (show)

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

Repro solution (VS2015) (6.44 KB, application/zip)
2015-02-22 20:43 UTC, Kent

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 Kent 2015-02-22 20:43:57 UTC
Created attachment 9969 [details]
Repro solution (VS2015)

If a UITableViewCell overrides WillMoveToSuperview (even if the override does absolutely nothing) and that cell is dequeued via the DequeueReusableCell(NSString, NSIndexPath) method, then any UITextField inside that cell is not editable. If, on the other hand, the cell is dequeued via DequeueReusableCell(NSString) OR the cell does not override WillMoveToSuperview, then the UITextField in the cell correctly responds to edit interactions.

This is true both in the simulator (8.1) and on an actual device. The same code written in Objective-C works as expected.

A repro is attached.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-02-23 06:52:36 UTC
I can reproduce this.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-02-24 11:28:30 UTC
I can reproduce with 8.6.2, but not with master, so this has been fixed. The fix will be included in Xamarin.iOS 8.10 (with current target date mid-April).