• 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: Torsten Curdt <email@hidden>
  • Date: Mon, 26 May 2014 17:56:32 +0200

OK, so it seems I explicitly need to call

    [cell setNeedsLayout];
    [cell layoutIfNeeded];

after the cell is configured.

I didn't think the `layoutIfNeeded` was necessary. That's a bit of a surprise.

The centering of the `UIScrollView` is still a bit funky though.
Based on the `contentOffset` it works - except for the weird jumping on release.

The `contentInset` approach does not work until you zoom.

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


References: 
 >UICollectionViewCell and UIScrollView and autolayout (From: Torsten Curdt <email@hidden>)

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