• 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: Rick Mann <email@hidden>
  • Date: Tue, 11 Oct 2016 18:29:29 -0700

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.

> On Oct 11, 2016, at 17:58 , Rick Mann <email@hidden> wrote:
>
> We have a complex storyboard-based iPad app, but this problem only reared its head when we upgraded to Xcode 8.
>
> In our app, we display a modal form sheet that consists of a UINavigationController with a UITableViewController (over a UICollectionViewController) that contains a bunch of fields for the user to fill out. The first field is automatically focused, and that causes the keyboard to slide up.
>
> This in turn causes the form sheet to slide up a bit. So far, no problem. But if the storyboard has ever been opened in Xcode 8, even if no explicit changes are made, then the contents of this form sheet are scrolled up so far that they're completely off the top of the sheet (and thus, invisible to the user).
>
> Any touch in the form sheet causes the contents to snap back into position. The table needs to be scollable because it's too large to fit on screen with the keyboard.
>
> This is clearly a bug, but I'm looking for a workaround.
>
> Any ideas? Thanks!
>
>
> --
> Rick Mann
> 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


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

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