• 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: Xcode 8 causes scroll issue when displaying keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 8 causes scroll issue when displaying keyboard


  • Subject: Re: Xcode 8 causes scroll issue when displaying keyboard
  • From: Carl Hoefs <email@hidden>
  • Date: Tue, 11 Oct 2016 20:37:14 -0700

Rick,

I think I may have encountered similar issues. -viewWillAppear: occurs very early in the view instantiation process, too early for certain things to execute successfully, and so it's likely that becomeFirstResponder() may not work properly or reliably from -viewWillAppear:. I solved my issues by using -viewDidAppear: or -viewDidLoad, both of which also execute on the main thread, but later in the view instantiation process.

-Carl

> On Oct 11, 2016, at 6:29 PM, Rick Mann <email@hidden> wrote:
>
> Ah, it happens because we call becomeFirstResponder() on the first text field while in viewWillAppear(). Dispatching that on the main queue asynchronously fixes the problem, but ugh it's so hacky.


_______________________________________________

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: Xcode 8 causes scroll issue when displaying keyboard
      • From: Quincey Morris <email@hidden>
    • Re: Xcode 8 causes scroll issue when displaying keyboard
      • From: Rick Mann <email@hidden>
References: 
 >Xcode 8 causes scroll issue when displaying keyboard (From: Rick Mann <email@hidden>)
 >Re: Xcode 8 causes scroll issue when displaying keyboard (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Xcode 8 causes scroll issue when displaying keyboard
  • Next by Date: Re: Xcode 8 causes scroll issue when displaying keyboard
  • Previous by thread: Re: Xcode 8 causes scroll issue when displaying keyboard
  • Next by thread: Re: Xcode 8 causes scroll issue when displaying keyboard
  • Index(es):
    • Date
    • Thread