ios - UIPageViewController views jump when resizing superview after swiping -


Text after "div class =" itemprop = "text">

I have a view controller which adds a UIPageViewController to a subview as a program (it is called "overlay") . Each page has a different height since the page view controller, I added an NSLayoutConstraint to the "Overlay" subview

Swipe every I calculate the height of the upcoming view controller and accordingly change the overlay view size.

  - (zero) resizeOverlayToBottomOf: (UIView *) element {// parent size controller changes the size of the overlay so this element shows by boat bottomOfElement = element.frame.origin.y + element .frame.size Hi + 20; [Self. Point viewer Set overlayhitt control setsteen: below impressions]; [Self-portrait visualizer. Set up PlaywareView Set-up Dated Consultants]; [Self-portrait week controller. Overlay play sets set layout]; [Self-explanatory viewfinder. Operator View Layout Infied]; }  

Hope everything works ... unless I want to change the overlay size with animation.
I have wrapped the last two rows of the above method with the animation block:

  [UIView animateWithDuration: 0.25f animation: ^ {[self.parentViewController.overlayView setNeedsLayout]; [Self-explanatory viewfinder. Operator View Layout Infied]; }];  

Now after the swipe is completed, the height of the overlay scene changes with the animation

The problem is that when the animation plays, the contents of the page view controller The screen takes back some places to close and swipe back in it. I have tried to add constraints to ensure a certain width of the page view controller content, but

"post-text" itemprop = "text">

Recently there was one problem that apparently works:

  - (zero) pageViewController: (UIPageViewController * ) PageViewController didFinishAnimating: (NSArray *) previousViewControllersCompleted: (bool) previousViewControllers are finished (bool) full {(full) if {CGFlot height = [self calculated highlights]; [Start the KatrinaSation]; [Cater Season Settlement Block: ^ {Self. Heights Constant Content = height; [UIView Chet Realism: 0.25 Delay: 0 Option: UIViewAnimationOptionCurveEaseInOut Animation: ^ {[self.view layoutIfNeeded]; } Closing: ^ (BOOL Finish) {}]; }]; [Catransens Cameat]; }}  

I understand that an animation interferes with another
CATransaction prevents the current animation and it will be completed after the completion of the current animation.
This works fine for me.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -