• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keyboard woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard woes


  • Subject: Re: Keyboard woes
  • From: Alex Zavatone via Cocoa-dev <email@hidden>
  • Date: Tue, 17 Nov 2020 18:51:19 -0600

Which version of Xcode and iOS?  Is it in a Simulator, on the device or both?

> On Nov 17, 2020, at 6:12 PM, Laurent Daudelin via Cocoa-dev
> <email@hidden> wrote:
>
> Anybody knows why, all of a sudden, when the keyboard will appear when
> editing a UITextField or a UITextView, the entire screen seems to freeze? The
> app in the debugger still to be still running but the interface seems frozen.
> Trying to rotate doesn’t do anything. There are no errors displayed in the
> console. I had text fields and text views that were working as usual, I made
> some changes here and there and now, I can’t remember what I could have done
> that is causing this problem. It looks like the runloop is not working. I
> have one case of textfield in a tableview controller that is presented
> modally like this:
>
>        self.loginController = [APP_DELEGATE.currentStoryboard
> instantiateViewControllerWithIdentifier:@"LoginTableViewController"];
>        self.loginController.nameTextField.text = lastAccountUsed;
>        self.loginController.modalPresentationStyle =
> UIModalPresentationFormSheet;
>        [self presentViewController:self.loginController animated:YES
> completion:nil];
>
> From the login view controller:
>
>
> - (void)viewWillAppear:(BOOL)animated
> {
>       [super viewWillAppear:animated];
>        self.nameTextField.enabled = YES;
>       self.nameTextField.text = @"";
>        self.passwordTextField.enabled = YES;
>       self.passwordTextField.text = @"";
>       self.loginButton.enabled = NO;
> }
>
> - (void)viewDidAppear:(BOOL)animated
> {
>       [super viewDidAppear:animated];
>       [self.nameTextField becomeFirstResponder];
> }
>
> This has worked for a long time and now, when the same code is executed, the
> interface just freezes. I have another case of a view controller that is
> presented as a popover and contains a UITextView. As soon as my code tries to
> set the text view as first responder, the keyboard appears, the text
> insertion point shows but does not blink.
>
> I really don’t know what I did :/
>
> Anybody has any idea?
>
> -Laurent.
> --
> Laurent Daudelin
>                 email@hidden <mailto:email@hidden>
> Skype: LaurentDaudelin
> Logiciels Némésys Software
> http://www.nemesys-soft.com/ <http://www.nemesys-soft.com/>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keyboard woes
      • From: Laurent Daudelin via Cocoa-dev <email@hidden>
References: 
 >Keyboard woes (From: Laurent Daudelin via Cocoa-dev <email@hidden>)

  • Prev by Date: Keyboard woes
  • Next by Date: Re: Keyboard woes
  • Previous by thread: Keyboard woes
  • Next by thread: Re: Keyboard woes
  • Index(es):
    • Date
    • Thread