Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 9
    Try placing the UILabel in a content view, then setting the trailing edge of the label to the content view (regular UIView). This video may help you greatly: youtube.com/watch?v=PgeNPRBrB18&feature=youtu.be Commented Sep 27, 2013 at 0:39
  • 1
    Great video but it didn't fix the warnings for me. :(
    – Mr Rogers
    Commented Sep 30, 2013 at 15:48
  • Thank you very much for the video - there was (rather surprisingly) quite a lot I learned from it! However, when I combine the knowledge of the video with stackoverflow.com/questions/18953617/… I can fix the warnings. The question that remains is: How to make the scrollView's contentView size only as large as necessary?
    – Wirsing
    Commented Oct 1, 2013 at 15:58
  • Take a look at this video. It shows how to use UIScrollLayout and autolayout with XCode 5 / iOS 7 .
    – jaxvy
    Commented Feb 12, 2014 at 20:53
  • My suggestion is don't use UIScrollView directly. Instead use UICollectionView or UITableView as much as possible, mostly every thing is possible with these element and its also give simplicity, readability and reusability!!!
    – SPatel
    Commented Jun 30, 2018 at 5:36