I have a UIScrollView scrolled to the bottom of content - so the content
bottom is at the bottom of the view - in a compact environment.
When the view rotates to regular, the contentOffset is too large - so
the bottom of the content appears in the middle of the view.
Without hard coding nav bar and tab bar sizes for regular and compact, I
don't see how I can compute the contentOffset.y max value prior to the
rotation - I poked around the protocols of the
UIViewControllerTransitionCoordinator coordinator passed in with the
'willTransitionToTraitCollection' message to no avail.
A similar protocol, UIViewControllerContextTransitioning, offers the
initial and final frames, but I cannot see how to get those from
anything available in willTransitionToTraitCollection.
Suggestions?
- David
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com