本文整理汇总了C#中MonoTouch.UIKit.UIButton.SetTitle方法的典型用法代码示例。如果您正苦于以下问题:C# MonoTouch.UIKit.UIButton.SetTitle方法的具体用法?C# MonoTouch.UIKit.UIButton.SetTitle怎么用?C# MonoTouch.UIKit.UIButton.SetTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoTouch.UIKit.UIButton
的用法示例。
在下文中一共展示了MonoTouch.UIKit.UIButton.SetTitle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateHandle
protected override void CreateHandle ()
{
m_helper = new MonoTouch.UIKit.UITextView();
m_helper.Editable = true;
var accessFrame = new RectangleF(0, 0, 300, 25);
var inputAccessoryView =new MonoTouch.UIKit.UIView(accessFrame);;
//inputAccessoryView.BackgroundColor = MonoTouch.UIKit.UIColor.Blue;
dismiss = MonoTouch.UIKit.UIButton.FromType(MonoTouch.UIKit.UIButtonType.RoundedRect);
dismiss.Frame = new System.Drawing.RectangleF(0, 0, 158, 25);
dismiss.SetTitle("Dismiss",MonoTouch.UIKit.UIControlState.Normal);
dismiss.TouchDown += delegate {
m_helper.BecomeFirstResponder();
m_helper.ResignFirstResponder();
};
inputAccessoryView.AddSubview(dismiss);
m_helper.InputAccessoryView = inputAccessoryView;
//m_helper.Started += delegate {
//dismiss = MonoTouch.UIKit.UIButton.FromType(MonoTouch.UIKit.UIButtonType.InfoDark);
//m_helper.InputView = dismiss;
//};
m_view = m_helper;
}