Re: Keyboard woes
Re: Keyboard woes
- Subject: Re: Keyboard woes
- From: Alex Zavatone via Cocoa-dev <email@hidden>
- Date: Tue, 17 Nov 2020 21:26:45 -0600
I know it’s a lot to ask, but what happens if you set up a simple case? Does
the same thing happen?
I’ve had to do that many times from back in the Macromedia days until now to
narrow down what’s causing the problem. When faced with such strangeness as
this, try to see if you can set up a simple case to reproduce it. Then compare
the differences between the two and narrow it down from there.
> On Nov 17, 2020, at 9:05 PM, Laurent Daudelin <email@hidden>
> wrote:
>
> Xcode release 12.2, both iOS 13 and 14. Both on device and simulator. The
> work I did on the app was trying to get the split view controller with the
> new APIs to behave like when used with the old APIs. I finally gave up after
> trying every possible combination of style and behavior. My app was
> originally designed 5 years ago. There might still be stuff that is impacting
> the new APIs, although I did search for all occurrences of the split view
> controller and isolated the few calls I had with @available to leave the new
> APIs do their job. But, I don’t see how this is related to all textfields and
> textviews now being unable to work with the keyboard!
>
> -Laurent.
> --
> Laurent Daudelin
> email@hidden
> Skype: LaurentDaudelin
> Logiciels Némésys Software
> http://www.nemesys-soft.com/
>
>> On Nov 17, 2020, at 19:51, Alex Zavatone <email@hidden> wrote:
>>
>> 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