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

scrolling woes


  • Subject: scrolling woes
  • From: "J.E. Schotsman" <email@hidden>
  • Date: Sat, 20 May 2017 15:00:18 +0200

Hello,

I had a text field within a tab view item whose text was getting too large.
So I embedded it in a scroll view. No matter what I tried in the xib editor, I couldn't get the scrolling to work.
Does this have to be so hard?

After a little googling I realised I could use a text view instead.
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.

This is a reasonable workaround except that now I have no placeholder value (would have to code that myself) and I noticed a curious bug in the text field (which would probably happen in an embedded text field as well):

Suppose I have three options for the text, one lets the scroll bar autohide, the second text is too large, the third text barely fits if the scroll bar is hidden. Now the look of the third text depends on the previous value: it can show without the scroll bar being visible, or it can show with the scroll bar.

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>
    • Re: scrolling woes
      • From: Saagar Jha <email@hidden>
  • Prev by Date: Re: Repository of older (outdated) PDF Guides?
  • Next by Date: Re: scrolling woes
  • Previous by thread: Re: Button doesn't respond to touches in landscape mode
  • Next by thread: Re: scrolling woes
  • Index(es):
    • Date
    • Thread