Bug 14771 - X.iOS does not allow setting NULL to UITableViewCell.SelectedBackgroundView
Summary: X.iOS does not allow setting NULL to UITableViewCell.SelectedBackgroundView
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.4.4
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-16 02:12 UTC by Prashant Cholachagudda
Modified: 2013-09-16 08:21 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 FIXED

Description Prashant Cholachagudda 2013-09-16 02:12:22 UTC
Xamarin.iOS throws ArgumentNullException when we try to set NULL UITableViewCell.SelectedBackgroundView, but XCode-ObjC allows NULL.

System.ArgumentNullException: Argument cannot be null.
Parameter name: value
  at MonoTouch.UIKit.UITableViewCell.set_SelectedBackgroundView (MonoTouch.UIKit.UIView value) [0x0000b] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UITableViewCell.g.cs:399
  at MonoTouch.Dialog.StringElement.GetCell (MonoTouch.UIKit.UITableView tv) [0x00060] in /Users/prashantvc/MonoTouch.Dialog/MonoTouch.Dialog/Elements.cs:672
  at MonoTouch.Dialog.DialogViewController+Source.GetCell (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x0002c] in /Users/prashantvc/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:342
  at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at Sample.Application.Main (System.String[] args) [0x00008] in /Users/prashantvc/MonoTouch.Dialog/Sample/Main.cs:16
Comment 1 Sebastien Pouliot 2013-09-16 08:21:46 UTC
Fixed ios7 c9fd74c6c7fac7571e043c92741819c6800ebf0f
monotouch-7.0.0-branch b2270c1db584de4075e0c290bbb6fd3261432db1