Bug 2713 - Setting DisablesAutomaticKeyboardDismissal Causes Exception
Summary: Setting DisablesAutomaticKeyboardDismissal Causes Exception
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-02 10:19 UTC by Tim Dawson
Modified: 2012-01-02 10:58 UTC (History)
3 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 Tim Dawson 2012-01-02 10:19:40 UTC
It is not currently possible to set this property, which is required to avoid undesirable default Apple behaviour of the keyboard not going away in modal dialogs. Setting it to false causes the exception below.


2012-01-02 15:17:53.612 HelloWorld_iPad[17252:1907] -[HelloWorld_iPadViewController setDisablesAutomaticKeyboardDismissal:]: unrecognized selector sent to instance 0x9b5df70

Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[HelloWorld_iPadViewController setDisablesAutomaticKeyboardDismissal:]: unrecognized selector sent to instance 0x9b5df70
  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_bool (intptr,intptr,bool)
  at MonoTouch.UIKit.UIViewController.set_DisablesAutomaticKeyboardDismissal (Boolean value) [0x00000] in <filename unknown>:0 
  at HelloWorld_iPad.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-01-02 10:46:37 UTC
This is a binding error, the setter doesn't actually exist in native code.

You're supposed to override the getter and return false there.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-01-02 10:58:47 UTC
Fixed for the next unstable release.