Bug 18658 - UISearchbar.SpellCheckingType has no binding
Summary: UISearchbar.SpellCheckingType has no binding
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 7.2.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-31 03:15 UTC by René Ruppert
Modified: 2014-03-31 08:33 UTC (History)
4 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 INVALID

Description René Ruppert 2014-03-31 03:15:52 UTC
UISearchBar is missing a binding for property: 

spellCheckingType
The spell-checking type.

@property(nonatomic) UITextSpellCheckingType spellCheckingType
Discussion
The default value is UITextSpellCheckingTypeDefault.

Availability
Available in iOS 5.0 and later.
Declared In
UISearchBar.h
Comment 1 Ram Chandra 2014-03-31 04:54:44 UTC
I have checked this issue and I am unable to reproduce this issue.

I have created the object of the "UISearchBar" class and with the help of the object of "UISearchBar" class I am able to access the "spellCheckingType" property of "UISearchBar" class. I also observed that when I go to the  declaration of "UISearchBar" class(right click on "UISearchBar" class and navigate to "Go to declaration") the "spellCheckingType" property is also available there. 

screencast: http://www.screencast.com/t/8bHuqJp3GvL

Environment:

Mac OS X 10.7.5
Xamarin Studio : 4.2.4 (build 32)
Xamarin.iOS: 7.2.0.2 

Build Information
Release ID: 402040032
Git revision: a160c35dac9ab9fd32eeadaa171216316d5a5133
Build date: 2014-03-12 13:55:08-04
Xamarin addins: a779416ceabd54981ce812771a4061c942e8b872

Please let me know If I am missing something.
Comment 2 René Ruppert 2014-03-31 05:32:34 UTC
I'm on X.iOS 7.2.1 here and the property is missing. Here's the UISearchBar class from the assembly browser:

#region Assembly monotouch.dll, v0.0.0.0
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoTouch\v1.0\monotouch.dll
#endregion

using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.CompilerServices;

namespace MonoTouch.UIKit
{
	[Register("UISearchBar", true)]
	public class UISearchBar : UIView
	{
		[CompilerGenerated]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		[Export("init")]
		public UISearchBar();
		[CompilerGenerated]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public UISearchBar(IntPtr handle);
		[CompilerGenerated]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		[Export("initWithCoder:")]
		public UISearchBar(NSCoder coder);
		[CompilerGenerated]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public UISearchBar(NSObjectFlag t);
		[CompilerGenerated]
		[Export("initWithFrame:")]
		public UISearchBar(RectangleF frame);

		public static UISearchBar.UISearchBarAppearance Appearance { get; }
		[CompilerGenerated]
		public virtual UITextAutocapitalizationType AutocapitalizationType { get; set; }
		[CompilerGenerated]
		public virtual UITextAutocorrectionType AutocorrectionType { get; set; }
		[CompilerGenerated]
		[Since(5, 0)]
		public virtual UIImage BackgroundImage { get; set; }
		[CompilerGenerated]
		public virtual UIBarStyle BarStyle { get; set; }
		[CompilerGenerated]
		[Since(7, 0)]
		public virtual UIColor BarTintColor { get; set; }
		public override IntPtr ClassHandle { get; }
		[CompilerGenerated]
		public UISearchBarDelegate Delegate { get; set; }
		public Func<IUIBarPositioning, UIBarPosition> GetPositionForBar { get; set; }
		[CompilerGenerated]
		[Since(6, 0)]
		public virtual UIView InputAccessoryView { get; set; }
		[CompilerGenerated]
		public virtual UIKeyboardType KeyboardType { get; set; }
		[CompilerGenerated]
		public virtual string Placeholder { get; set; }
		[CompilerGenerated]
		public virtual string Prompt { get; set; }
		[CompilerGenerated]
		[Since(5, 0)]
		public virtual UIImage ScopeBarBackgroundImage { get; set; }
		[CompilerGenerated]
		public virtual string[] ScopeButtonTitles { get; set; }
		[CompilerGenerated]
		[Since(7, 0)]
		public virtual UISearchBarStyle SearchBarStyle { get; set; }
		[CompilerGenerated]
		[Since(5, 0)]
		public virtual UIOffset SearchFieldBackgroundPositionAdjustment { get; set; }
		[CompilerGenerated]
		[Since(3, 2)]
		public virtual bool SearchResultsButtonSelected { get; set; }
		[CompilerGenerated]
		[Since(5, 0)]
		public virtual UIOffset SearchTextPositionAdjustment { get; set; }
		[CompilerGenerated]
		public virtual int SelectedScopeButtonIndex { get; set; }
		public UISearchBarPredicate ShouldBeginEditing { get; set; }
		public UISearchBarRangeEventArgs ShouldChangeTextInRange { get; set; }
		public UISearchBarPredicate ShouldEndEditing { get; set; }
		[CompilerGenerated]
		public virtual bool ShowsBookmarkButton { get; set; }
		[CompilerGenerated]
		public virtual bool ShowsCancelButton { get; set; }
		[CompilerGenerated]
		public virtual bool ShowsScopeBar { get; set; }
		[CompilerGenerated]
		[Since(3, 2)]
		public virtual bool ShowsSearchResultsButton { get; set; }
		[CompilerGenerated]
		public virtual string Text { get; set; }
		[CompilerGenerated]
		public virtual bool Translucent { get; set; }
		[CompilerGenerated]
		public virtual NSObject WeakDelegate { get; set; }

		public event EventHandler BookmarkButtonClicked;
		public event EventHandler CancelButtonClicked;
		public event EventHandler ListButtonClicked;
		public event EventHandler OnEditingStarted;
		public event EventHandler OnEditingStopped;
		public event EventHandler SearchButtonClicked;
		public event EventHandler<UISearchBarButtonIndexEventArgs> SelectedScopeButtonIndexChanged;
		public event EventHandler<UISearchBarTextChangedEventArgs> TextChanged;

		public static UISearchBar.UISearchBarAppearance AppearanceWhenContainedIn(params Type[] containers);
		[CompilerGenerated]
		[Export("backgroundImageForBarMetrics:")]
		[Since(7, 0)]
		public virtual UIImage BackgroundImageForBarMetrics(UIBarMetrics barMetrics);
		[CompilerGenerated]
		[Export("backgroundImageForBarPosition:barMetrics:")]
		[Since(7, 0)]
		public virtual UIImage BackgroundImageForBarPosition(UIBarPosition barPosition, UIBarMetrics barMetrics);
		[CompilerGenerated]
		protected override void Dispose(bool disposing);
		public static UISearchBar.UISearchBarAppearance GetAppearance<T>();
		[CompilerGenerated]
		[Export("imageForSearchBarIcon:state:")]
		[Since(5, 0)]
		public virtual UIImage GetImageForSearchBarIcon(UISearchBarIcon icon, UIControlState state);
		[CompilerGenerated]
		[Export("positionAdjustmentForSearchBarIcon:")]
		[Since(5, 0)]
		public virtual UIOffset GetPositionAdjustmentForSearchBarIcon(UISearchBarIcon icon);
		[CompilerGenerated]
		[Export("scopeBarButtonBackgroundImageForState:")]
		[Since(5, 0)]
		public virtual UIImage GetScopeBarButtonBackgroundImage(UIControlState state);
		[CompilerGenerated]
		[Export("scopeBarButtonDividerImageForLeftSegmentState:rightSegmentState:")]
		[Since(5, 0)]
		public virtual UIImage GetScopeBarButtonDividerImage(UIControlState leftState, UIControlState rightState);
		public UITextAttributes GetScopeBarButtonTitleTextAttributes(UIControlState state);
		[CompilerGenerated]
		[Export("searchFieldBackgroundImageForState:")]
		[Since(5, 0)]
		public virtual UIImage GetSearchFieldBackgroundImage(UIControlState state);
		[CompilerGenerated]
		[Export("setBackgroundImage:forBarMetrics:")]
		[Since(7, 0)]
		public virtual void SetBackgroundImage(UIImage backgroundImage, UIBarMetrics barMetrics);
		[CompilerGenerated]
		[Export("setBackgroundImage:forBarPosition:barMetrics:")]
		[Since(7, 0)]
		public virtual void SetBackgroundImage(UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics);
		[CompilerGenerated]
		[Export("setImage:forSearchBarIcon:state:")]
		[Since(5, 0)]
		public virtual void SetImageforSearchBarIcon(UIImage iconImage, UISearchBarIcon icon, UIControlState state);
		[CompilerGenerated]
		[Export("setPositionAdjustment:forSearchBarIcon:")]
		[Since(5, 0)]
		public virtual void SetPositionAdjustmentforSearchBarIcon(UIOffset adjustment, UISearchBarIcon icon);
		[CompilerGenerated]
		[Export("setScopeBarButtonBackgroundImage:forState:")]
		[Since(5, 0)]
		public virtual void SetScopeBarButtonBackgroundImage(UIImage backgroundImage, UIControlState state);
		[CompilerGenerated]
		[Export("setScopeBarButtonDividerImage:forLeftSegmentState:rightSegmentState:")]
		[Since(5, 0)]
		public virtual void SetScopeBarButtonDividerImage(UIImage dividerImage, UIControlState leftState, UIControlState rightState);
		public void SetScopeBarButtonTitle(UITextAttributes attributes, UIControlState state);
		[CompilerGenerated]
		[Export("setSearchFieldBackgroundImage:forState:")]
		[Since(5, 0)]
		public virtual void SetSearchFieldBackgroundImage(UIImage backgroundImage, UIControlState state);
		[CompilerGenerated]
		[Export("setShowsCancelButton:animated:")]
		public virtual void SetShowsCancelButton(bool showsCancelButton, bool animated);

		public class UISearchBarAppearance : UIView.UIViewAppearance
		{
			[CompilerGenerated]
			[Since(5, 0)]
			public virtual UIImage BackgroundImage { get; set; }
			[CompilerGenerated]
			[Since(7, 0)]
			public virtual UIColor BarTintColor { get; set; }
			[CompilerGenerated]
			[Since(5, 0)]
			public virtual UIImage ScopeBarBackgroundImage { get; set; }

			[CompilerGenerated]
			[Export("backgroundImageForBarMetrics:")]
			[Since(7, 0)]
			public virtual UIImage BackgroundImageForBarMetrics(UIBarMetrics barMetrics);
			[CompilerGenerated]
			[Export("backgroundImageForBarPosition:barMetrics:")]
			[Since(7, 0)]
			public virtual UIImage BackgroundImageForBarPosition(UIBarPosition barPosition, UIBarMetrics barMetrics);
			[CompilerGenerated]
			[Export("imageForSearchBarIcon:state:")]
			[Since(5, 0)]
			public virtual UIImage GetImageForSearchBarIcon(UISearchBarIcon icon, UIControlState state);
			[CompilerGenerated]
			[Export("scopeBarButtonBackgroundImageForState:")]
			[Since(5, 0)]
			public virtual UIImage GetScopeBarButtonBackgroundImage(UIControlState state);
			[CompilerGenerated]
			[Export("scopeBarButtonDividerImageForLeftSegmentState:rightSegmentState:")]
			[Since(5, 0)]
			public virtual UIImage GetScopeBarButtonDividerImage(UIControlState leftState, UIControlState rightState);
			public UITextAttributes GetScopeBarButtonTitleTextAttributes(UIControlState state);
			[CompilerGenerated]
			[Export("searchFieldBackgroundImageForState:")]
			[Since(5, 0)]
			public virtual UIImage GetSearchFieldBackgroundImage(UIControlState state);
			[CompilerGenerated]
			[Export("setBackgroundImage:forBarMetrics:")]
			[Since(7, 0)]
			public virtual void SetBackgroundImage(UIImage backgroundImage, UIBarMetrics barMetrics);
			[CompilerGenerated]
			[Export("setBackgroundImage:forBarPosition:barMetrics:")]
			[Since(7, 0)]
			public virtual void SetBackgroundImage(UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics);
			[CompilerGenerated]
			[Export("setImage:forSearchBarIcon:state:")]
			[Since(5, 0)]
			public virtual void SetImageforSearchBarIcon(UIImage iconImage, UISearchBarIcon icon, UIControlState state);
			[CompilerGenerated]
			[Export("setScopeBarButtonBackgroundImage:forState:")]
			[Since(5, 0)]
			public virtual void SetScopeBarButtonBackgroundImage(UIImage backgroundImage, UIControlState state);
			[CompilerGenerated]
			[Export("setScopeBarButtonDividerImage:forLeftSegmentState:rightSegmentState:")]
			[Since(5, 0)]
			public virtual void SetScopeBarButtonDividerImage(UIImage dividerImage, UIControlState leftState, UIControlState rightState);
			public void SetScopeBarButtonTitle(UITextAttributes attributes, UIControlState state);
			[CompilerGenerated]
			[Export("setSearchFieldBackgroundImage:forState:")]
			[Since(5, 0)]
			public virtual void SetSearchFieldBackgroundImage(UIImage backgroundImage, UIControlState state);
		}
	}
}
Comment 3 Ram Chandra 2014-03-31 08:04:18 UTC
I have tried to reproduce this issue with X.iOS 7.2.1.24 and  X.iOS 7.2.1.25  but I am unable to reproduce this issues.

screencast (XS.iOS 7.2.1.24): http://www.screencast.com/t/80zcNptmsm
screencast (XS.iOS 7.2.1.25): http://www.screencast.com/t/fnVDgdaN

Could you please provide the details of your Xamarin Studio. You can get it from :
(click on "Xamarin Studio" menu-> About xamarin Studio -> click on "Show Details" Button -> click on "Copy Information Button"?  So that I can get proper build information
Comment 4 René Ruppert 2014-03-31 08:23:16 UTC
=== Xamarin Studio ===

Version 4.3.4 (build 0)
Installation UUID: 220dde4a-6e9c-4c80-a89e-6ef72bea0759
Runtime:
	Mono 3.2.7 ((no/40f92d5)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 302070000

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: 7.2.1.25 (Business Edition)
Hash: 46b2486
Branch: 
Build date: 2014-03-24 15:04:26-0400

=== Xamarin.Android ===

Version: 4.12.3 (Business Edition)
Android SDK: /Users/rene/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Build Information ===

Release ID: 403040000
Git revision: e2e118a56ebf05c9f15eafbf53379bdebded727c
Build date: 2014-03-12 15:39:07-04
Xamarin addins: 9f2eb9aed862e28ca23d2d2f34e22952087e6e4c

=== Operating System ===

Mac OS X 10.9.2
Darwin iMacBuero.local 13.1.0 Darwin Kernel Version 13.1.0
    Thu Jan 16 19:40:37 PST 2014
    root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
Comment 5 René Ruppert 2014-03-31 08:24:24 UTC
the code I used:

var sb = new UISearchBar();
sb.spell... -> not intellisense. Show definition of UISearchBar gives me the result posted above. Nothing about spell checking in there.
Comment 6 Sebastien Pouliot 2014-03-31 08:31:10 UTC
That property was added last November.

My guess is that your monotouch.dll is out of date and your (Windows) SDK needs to be re-synchronized with the assemblies available on your Mac side. Please contact support if you require assistance for doing so.


note: you can verify this by looking at the `MonoTouch.Constants.Version` string inside your "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoTouch\v1.0\monotouch.dll" file. The md5sum should also differ from your Mac and Windows on that file.
Comment 7 René Ruppert 2014-03-31 08:33:52 UTC
You're right. Syncing fixed it.