Re: Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Quincey Morris
On Oct 11, 2016, at 20:37 , Carl Hoefs wrote: > > 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 properl

Re: Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Rick Mann
Yeah, thanks to Graham for suggesting using viewDidLoad(). That fixed it. What's annoying and disturbing is this: It worked before the storyboard was touched by Xcode 8. No changes, just whatever IB does when you open a file in it. Same behavior on 8.4, 9.3, and 10.0. > On Oct 11, 2016, at 20:

Re: Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Carl Hoefs
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 is

Re: Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Graham Cox
> On 12 Oct 2016, at 12:29 PM, Rick Mann 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. What if you called it in -viewDidAppear

Re: Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Rick Mann
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 wrote: > > We have a complex storyboard-based iPad app, b

Xcode 8 causes scroll issue when displaying keyboard

2016-10-11 Thread Rick Mann
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 fo