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

UICollectionViewCell and UIScrollView and autolayout


  • Subject: UICollectionViewCell and UIScrollView and autolayout
  • From: Torsten Curdt <email@hidden>
  • Date: Mon, 26 May 2014 17:00:03 +0200

I've built a little demo project where I am struggling with autolayout.

  https://github.com/tcurdt/paging-and-zooming

I basically have a fullscreen collection view to page through some
scroll views that allow zooming into an image.

When the UICollectionViewCells are being configured

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

autolayout has assigned a frame to the cell. But somehow the
UIScrollView is still at CGRectZero ...and somehow I cannot convince
autolayout to assign the proper frame.

Oddly enough it still show the image though - I just cannot center the
scroll view.

My head hurts. If someone with some more autolayout experience could
share some wise word - that would be awesome.

cheers,
Torsten
_______________________________________________

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: Luke Hiesterman <email@hidden>
    • Re: UICollectionViewCell and UIScrollView and autolayout
      • From: Torsten Curdt <email@hidden>
  • Prev by Date: Re: EXC_BAD_ACCESS in NSData
  • Next by Date: Re: EXC_BAD_ACCESS in NSData
  • Previous by thread: Re: EXC_BAD_ACCESS in NSData
  • Next by thread: Re: UICollectionViewCell and UIScrollView and autolayout
  • Index(es):
    • Date
    • Thread