Re: scrolling woes
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