• 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 woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling woes


  • Subject: Re: scrolling woes
  • From: "J.E. Schotsman" <email@hidden>
  • Date: Sat, 20 May 2017 21:01:47 +0200

> On 20 May 2017, at 19:11, Saagar Jha wrote:
>
> Scroll views are dependent on the content size of their subviews. This can be done
> by setting unambiguous constraints to the margins of the scroll view
> by manually setting the contentSize of the scroll view.
> If you don’t do either of these, the scroll view won’t work.

Looks like I can't get the scrolling behaviour for free in this way as I was hoping.

>> So I dumbed down the text view to a text field with vertical scroll bar in the xib.
>> After setting the scroller enabled (why would you want a scroll bar that is visible, yet not enabled?) it started to work.
>
> Wait, what? How did you “dumb” down the text view? Did you start deleting components? In general, this isn’t what you want to do; you can control whether the scroll bars are shown through code or the inspector on the right side. What behavior are you trying to achieve?

The behaviour of a non-editable text field with the added property that it can be scrolled.
I used the inspector to disable most of the capabilities of the text view.
I am happy with the result except that I cannot set the placeholder text now.

Jan E.

_______________________________________________

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 woes
      • From: Quincey Morris <email@hidden>
References: 
 >scrolling woes (From: "J.E. Schotsman" <email@hidden>)
 >Re: scrolling woes (From: Saagar Jha <email@hidden>)

  • Prev by Date: Re: scrolling woes
  • Next by Date: Re: scrolling woes
  • Previous by thread: Re: scrolling woes
  • Next by thread: Re: scrolling woes
  • Index(es):
    • Date
    • Thread