ios - Animating UIView with auto layout when the view is just created and about to appear -
i have uiview
contains subviews contains subviews...(hierarchy of uiviews
).
every uiview
set auto layout. when press button, uiview
created , drop top of screen.
the problem when use layoutifneeded
in animation if animate @ same time newly created uiview
(not yet display).
my question is, there way animation of uiview
dropping subviews laid out in it?
i guess can creating uiview
when uiviewcontroller
displays , hide wondering there way.
cheers
if call layoutifneeded
right after add view, while still outside view, should lay out it's views correctly. , in animation call again view animate final position.
Comments
Post a Comment