• 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: Something is constantly updating my scroll view's contentSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Something is constantly updating my scroll view's contentSize


  • Subject: Re: Something is constantly updating my scroll view's contentSize
  • From: Rick Mann <email@hidden>
  • Date: Wed, 19 Jun 2013 21:14:37 -0700

Okay, so, based on that article, I have some questions.

	http://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/index.html

In the section on UIScrollView, it gives two options. One for a hybrid approach, and one for a "pure" approach. I'd like to do the second, if possible.

But the example shows it programmatically, not using IB. It shows edge-to-superview edge constraints on both the UIScrollView and the contained UIImageView. Unfortunately, IB insists on adding an additional centerX/Y constraint to the inner UIImageView.

Anyway, I put together in IB what the example shows in code (with the exception of the spurious centerX/Y constraint that I can't delete), and it doesn't size the UIImageView to the size of the image; it has the same size as the UIScrollView that contains it.

On Jun 19, 2013, at 16:22 , Kyle Sluder <email@hidden> wrote:

> On Wed, Jun 19, 2013, at 04:03 PM, Rick Mann wrote:
>> I can try that. Does autolayout have any effect on
>> -UIScrollView.contentSize?
>
> Yes. That's how the scroll view computes its contentSize.
>
> --Kyle Sluder


--
Rick




_______________________________________________

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


References: 
 >Something is constantly updating my scroll view's contentSize (From: Rick Mann <email@hidden>)
 >Re: Something is constantly updating my scroll view's contentSize (From: Kyle Sluder <email@hidden>)
 >Re: Something is constantly updating my scroll view's contentSize (From: Rick Mann <email@hidden>)
 >Re: Something is constantly updating my scroll view's contentSize (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Something is constantly updating my scroll view's contentSize
  • Next by Date: Re: positioning two UILabels with auto layout problem
  • Previous by thread: Re: Something is constantly updating my scroll view's contentSize
  • Next by thread: Detect a Retina display
  • Index(es):
    • Date
    • Thread