mono touch隐藏键盘

有不明白的地方欢迎入群 347636249 探讨

/// <summary>

        /// 隐藏键盘
        /// </summary>
        public override void TouchesBegan (NSSet touches, UIEvent evt)
        {
            base.TouchesBegan (touches, evt);
            UITouch touch = touches.AnyObject as UITouch;
            if (touch != null) {
                utxt.ResignFirstResponder ();
            }

        }


utxt为UITextView

你可能感兴趣的:(mono touch隐藏键盘)