• 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: Scrolling table view when the keyboard appears
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling table view when the keyboard appears


  • Subject: Re: Scrolling table view when the keyboard appears
  • From: Doug Hill <email@hidden>
  • Date: Tue, 24 May 2016 16:38:17 -0700

> On May 24, 2016, at 3:48 PM, Kyle Sluder <email@hidden> wrote:
>
> On Tue, May 24, 2016, at 05:46 PM, Kyle Sluder wrote:
>> On Tue, May 24, 2016, at 05:37 PM, Alex Zavatone wrote:
>>>
>>> On May 24, 2016, at 4:02 PM, Kyle Sluder wrote:
>>>
>>>> On Tue, May 24, 2016, at 12:33 PM, Doug Hill wrote:
>>>>> OK, this might have been more obvious to people, but it finally came to
>>>>> me how to handle the keyboard display.
>>>>>
>>>>> Instead of changing the view size, I move the center of the view up, then
>>>>> apply a content inset to the table to adjust for the part of the table
>>>>> offscreen. Animations seem to work much better now.
>>>>
>>>> Did you really mean “move the center of the view”? Or did you mean
>>>> scrolling the center of the viewport?
>>>>
>>>> Either way, contentInset is definitely the way to handle this.
>>>
>>> Just checking.  You meant to use contentInset and not contentOffset?
>>
>> Yes, I meant contentInset. contentOffset is just another name for
>> self.bounds.origin.
>
> To clarify: you might want to change both the contentInset (to avoid the
> keyboard) *and* the contentOffset (to move content that has been
> obscured by the keyboard back into the visible part of the scrollview.)
>
> --Kyle Sluder

Thanks for the tip, I’ll try that too.

Doug
_______________________________________________

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: Scrolling table view when the keyboard appears
      • From: Doug Hill <email@hidden>
References: 
 >Scrolling table view when the keyboard appears (From: Doug Hill <email@hidden>)
 >Re: Scrolling table view when the keyboard appears (From: Doug Hill <email@hidden>)
 >Re: Scrolling table view when the keyboard appears (From: Kyle Sluder <email@hidden>)
 >Re: Scrolling table view when the keyboard appears (From: Alex Zavatone <email@hidden>)
 >Re: Scrolling table view when the keyboard appears (From: Kyle Sluder <email@hidden>)
 >Re: Scrolling table view when the keyboard appears (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Scrolling table view when the keyboard appears
  • Next by Date: Re: Scrolling table view when the keyboard appears
  • Previous by thread: Re: Scrolling table view when the keyboard appears
  • Next by thread: Re: Scrolling table view when the keyboard appears
  • Index(es):
    • Date
    • Thread