• 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: UICollectionViewCell and UIScrollView and autolayout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UICollectionViewCell and UIScrollView and autolayout


  • Subject: Re: UICollectionViewCell and UIScrollView and autolayout
  • From: Luke Hiesterman <email@hidden>
  • Date: Mon, 26 May 2014 16:10:46 +0000
  • Thread-topic: UICollectionViewCell and UIScrollView and autolayout

That is fine, but the statement made in your original email said “autolayout has assigned a frame to the cell.” You’re free to use autolayout inside the content view - just don’t try to layout the cell itself.

Luke

On May 26, 2014, at 9:07 AM, Torsten Curdt <email@hidden<mailto:email@hidden>> wrote:

I am not assigning a frame - but I am indeed assigning constraints to
the subviews of the UICollectionViewCell's content view:

https://github.com/tcurdt/paging-and-zooming/blob/master/Paging/TCPagingView.m#L17

That is not supported?

cheers,
Torsten

On Mon, May 26, 2014 at 5:59 PM, Luke Hiesterman <email@hidden> wrote:
Why is autolayout assigning a frame to the cell? Are you putting autolayout
constraints on your cell? If so, shouldn’t be. The collection view assigns
the cell’s frame (according to the wishes of the assigned
collectionViewLayout). Setting the frame yourself, either by calling
-setFrame or something that will affect frame on your behalf, such as using
autolayout constraints, or autoresizing masks on the cell is unsupported.

Luke

On May 26, 2014, at 8:00 AM, Torsten Curdt <email@hidden> wrote:

autolayout has assigned a frame to the cell



_______________________________________________

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: UICollectionViewCell and UIScrollView and autolayout
      • From: Kyle Sluder <email@hidden>
    • Re: UICollectionViewCell and UIScrollView and autolayout
      • From: Torsten Curdt <email@hidden>
References: 
 >UICollectionViewCell and UIScrollView and autolayout (From: Torsten Curdt <email@hidden>)
 >Re: UICollectionViewCell and UIScrollView and autolayout (From: Luke Hiesterman <email@hidden>)
 >Re: UICollectionViewCell and UIScrollView and autolayout (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: UICollectionViewCell and UIScrollView and autolayout
  • Next by Date: Re: EXC_BAD_ACCESS in NSData
  • Previous by thread: Re: UICollectionViewCell and UIScrollView and autolayout
  • Next by thread: Re: UICollectionViewCell and UIScrollView and autolayout
  • Index(es):
    • Date
    • Thread