ios - implement Facebook messenger style pan to full screen view similar effect -
I implemented the UIPageviewContoller to support several viewcontoller approaches in the lower half of my screen. Now my question is that on my subview of this page on the pageview controller, the Facebook style panning effect is supported.
I want to achieve the Facebook message style effect, in which they have applied in the camera with the finger pan, we can make the scene as full screen and when we pan down the same scene Then it will be adjusted within the original from the view. To understand better some screens are attached Ihave
and it should support a coordinated pop gesture.
I could do the same effect Enabled, but for this I've added a view to the main window so that you can pan across the screen, but from this point of view I'm not able to get the Interactive Pop IOS default gesture and this approach with my current page description controller implementation not good.
And if the button is pressed in the window in the window in the window, then if the view is added to the window then it will remain in the window, so the windows approach is not good
Is there any other way to get the same effect? What UIViewControllerInteractiveTransitioning can help for this ??
Thanks in advance, I know I will get a better approach than you guys, by adding the window's subview which will be more stable for this matter.
If you have tried to add swipe gesture to your subview one
UISwipeGestureRecognizer * swipeUp = [[UISwipeGestureRecognizer alloc] initWithTarget: auto operation: @selector (didSwipeScreen :)]; SwipeUp.direction = UISwipeGestureRecognizerDirectionUp; [Your shovvy adestin: swipe];
And to deal with it -
- (zero) didSwipeScreen: (UISwipeGestureRecognizer *) Alert {switch (gesture.direction) {Case UISwipeGestureRecognizerDirectionUp: { [UIView animateWithDuration: 0.5 Delay: 0.0 Option: UIViewAnimationOptionCurveLinear Animation: ^ {[yourSubViewA setFrame: desiredFullScreenFrame]; } Closing: ^ (BOOL Finish) {}]; } break; Default: Break; }}
To restore the default status you can probably add another swipe gesture with a tap nesting UISwipeGestureRecognizerDirectionDown or And good for the side menu.
Comments
Post a Comment