Ios UI键盘不显示

Ios UI键盘不显示,ios,objective-c,xamarin.ios,keyboard,remote-control,Ios,Objective C,Xamarin.ios,Keyboard,Remote Control,当我点击屏幕上的文本框时,它完美地显示了键盘,直到我在应用程序中添加了遥控功能 遥控器现在成了第一反应器。它位于应用程序的第一个viewcontroller中。下一个ViewController包含文本框。当我点击并想看到键盘时 当我点击文本框时,如何保持所有的响应链,使遥控器工作,文本框键盘在正确的时间出现 WhatToDo.cs包含远程控制处理程序,BrowseApi.cs包含键盘 WhatToDo.cs public override void ViewDidLoad ()

当我点击屏幕上的文本框时,它完美地显示了键盘,直到我在应用程序中添加了遥控功能

遥控器现在成了第一反应器。它位于应用程序的第一个viewcontroller中。下一个ViewController包含文本框。当我点击并想看到键盘时

当我点击文本框时,如何保持所有的响应链,使遥控器工作,文本框键盘在正确的时间出现

WhatToDo.cs包含远程控制处理程序,BrowseApi.cs包含键盘

WhatToDo.cs

public override void ViewDidLoad ()
        {
            base.ViewDidLoad ();
            UIApplication.SharedApplication.SetStatusBarHidden (true, UIStatusBarAnimation.Fade);
        -
            if (audioSession == null) {
                audioSession = AVAudioSession.SharedInstance ();
                NSError error;
                audioSession.SetCategory (AVAudioSession.CategoryPlayback, out error);
                audioSession.SetActive (true, out error);

                //AudioSession.Initialize(null, NSRunLoop.NSDefaultRunLoopMode);
                //AudioSession.AudioRouteChanged += AudioSession_AudioRouteChanged;
                AudioSession.Initialize (null, NSRunLoop.NSDefaultRunLoopMode);
                AudioSession.AudioRouteChanged += AudioSession_AudioRouteChanged;
                UIApplication.SharedApplication.BeginReceivingRemoteControlEvents ();
                this.BecomeFirstResponder ();

            }
            // Perform any additional setup after loading the view, typically from a nib.
        }

        public override void ViewDidAppear (bool animated)
        {
            base.ViewDidAppear (animated);


        }

        public override void DidReceiveMemoryWarning ()
        {
            // Releases the view if it doesn't have a superview.
            base.DidReceiveMemoryWarning ();

            // Release any cached data, images, etc that aren't in use.
        }

        public override void ViewDidUnload ()
        {
            base.ViewDidUnload ();

            // Clear any references to subviews of the main view in order to
            // allow the Garbage Collector to collect them sooner.
            //
            // e.g. myOutlet.Dispose (); myOutlet = null;

            ReleaseDesignerOutlets ();
        }

        public override bool CanBecomeFirstResponder {
            get {
                return true;
            }
        }

        public override bool CanResignFirstResponder {
            get {
                return false;
            }
        }

        /// <summary>
        /// Kulaklıkk cıkınca girince buraya ugrar.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">E.</param>
        void AudioSession_AudioRouteChanged (object sender, AudioSessionRouteChangeEventArgs e)
        {

        }



        public override void RemoteControlReceived (UIEvent theEvent)
        {
}
public override void ViewDidLoad ()
        {


            textBoxSearchBrowseApi.Text = QueryStr;
            base.ViewDidLoad ();
            this.textBoxSearchBrowseApi.ShouldReturn = delegate(UITextField textField) {
                this.textBoxSearchBrowseApi.BecomeFirstResponder ();
                return true;
            };


            // make 'return' on last text field save and close the form
            this.textBoxSearchBrowseApi.ShouldReturn = delegate(UITextField textField) {
                this.textBoxSearchBrowseApi.ResignFirstResponder ();
                searchQuery(textBoxSearchBrowseApi.Text);
                return true;
            };



        }

当您单击文本框时,是否使其成为第一响应者?是的,键盘在其视图中成为第一响应者。.否,键盘文本框不是指您的文本字段吗?是的,它是UITEXTFIELD OK,那么现在有什么问题?当textfield是第一个响应程序时,键盘就会出现