我想使用MonoTouch更改UISearchBar
的取消按钮的标题。 是的,我看过这个“hack”,但我更喜欢更优雅的方式。我试图使用方法:无法更改UISearchBar中的取消按钮的标题
UIButton.AppearanceWhenContainedIn(typeof(UISearchBar)).SetTitle("xxxx");
它应该在Objective-C,但在MonoTouch中,我得到以下错误
信息工作:错误CS1061:类型
MonoTouch.UIKit.UIButton.UIButtonAppearance' does not contain a definition for
的setTitle”,并没有扩展方法SetTitle' of type
MonoTouch.UIKit.UIButton.UIButtonAppearance”可以找到(是否 缺少using指令或程序集引用?)
我我正在使用Xamarin Studio版本。 4.0
这是http://stackoverflow.com/questions/15130180/change-text-of-cancel-button-on-的副本一个-的UISearchBar-使用-MonoTouch的 – 2013-03-01 08:16:38