custom-transition

iOS 9 custom transition - animationControllerForDismissedController not called

孤街浪徒 提交于 2019-12-24 00:35:27
问题 I am a newbee in iOS development and recently run into this problem with customized transition in iOS 9. I have an object conforms to UIViewControllerTransitioningDelegate protocol and implements animationControllerForDismissedController , something like: @implementation MyCustomizedTransitioningDelegate #pragma mark - UIViewControllerTransitioningDelegate - (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed {

Custom transition for push animation with NavigationController on iOS 9

我的梦境 提交于 2019-12-21 09:36:59
问题 I have a custom push transition between view controllers embedded in a UINavigationController which is working fine when built with iOS 7/8 but presents a wrong layout when built against iOS 9 SDK. - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toViewController = [transitionContext viewControllerForKey

Touches not recognized after custom transition

随声附和 提交于 2019-12-20 04:12:44
问题 I have an issue with custom transitions on the iPad. I create a custom transition that animates correctly and seems to work (i.e. the transition occurs). However, when I arrive at the destination view controller (after executing the isLoggedIn block), the destination view controller is unresponsive (it doesn't respond to touch events). II have a feeling it has something to do with the call to [container insertSubview:toViewController.view belowSubview:fromViewController.view]; because if I

Present a transparent modal UIViewController

眉间皱痕 提交于 2019-12-18 12:56:18
问题 I'm trying to make a custom alertView (for iOS7+) on my own but I struggle with the alertView presentation. I have a UIViewController with a black background (alpha set to 0.25f), and a alertView as subview. When I want to show the alertView, I present modally the viewController: -(void) show { UIWindow* window = [[UIApplication sharedApplication] keyWindow]; self.modalTransitionStyle = UIModalPresentationCustom; self.transitioningDelegate = self; [window.rootViewController

Circular transition (mask) in iOS and Objective C

╄→尐↘猪︶ㄣ 提交于 2019-12-09 02:05:30
问题 We were wondering how we can easily build a circular mask, that blends out the background and transitions into a new view, with new buttons? See example here (watch the red planet gets triggered): 回答1: //Swift 4 This is a simple static method for circular bubble transition from a point screen. //as shown on this link https://github.com/andreamazz/BubbleTransition import UIKit class AnimationUtility: UIViewController { static func animateBubbleTrnsitionView( selfView: UIView, point : CGPoint)

Custom transition for push animation with NavigationController on iOS 9

北城以北 提交于 2019-12-04 03:27:58
I have a custom push transition between view controllers embedded in a UINavigationController which is working fine when built with iOS 7/8 but presents a wrong layout when built against iOS 9 SDK. - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; [transitionContext.containerView addSubview:toViewController.view]; ... It

UIPercentDrivenInteractiveTransition yielding extraneous animation when done

自闭症网瘾萝莉.ら 提交于 2019-12-03 11:09:02
问题 I'm using an interactive custom push transition with a UIPercentDrivenInteractiveTransition . The gesture recognizer successfully calls the interaction controller's updateInteractiveTransition . Likewise, the animation successfully completes when I call the interaction controller's finishInteractiveTransition . But, sometimes I get a extra bit of distracting animation at the end (where it seems to repeat the latter part of the animation). With reasonably simple animations, I rarely see this

How to 'cancel' view appearance transitions for custom container controller transitions

三世轮回 提交于 2019-12-03 03:53:10
问题 I have created a custom container controller that works similarly to a UIPageViewController so that I could implement some custom transitions & data source logic. I tried to mimic the way the new customer view controller transition APIs work in iOS 7, and it works well except for some irritating quirks with the view appearance callbacks when a transition is cancelled ... Namely, when performing a transition, when exactly should beginAppearanceTransition:animated: and endAppearanceTransition

UIPercentDrivenInteractiveTransition yielding extraneous animation when done

浪子不回头ぞ 提交于 2019-12-03 01:33:57
I'm using an interactive custom push transition with a UIPercentDrivenInteractiveTransition . The gesture recognizer successfully calls the interaction controller's updateInteractiveTransition . Likewise, the animation successfully completes when I call the interaction controller's finishInteractiveTransition . But, sometimes I get a extra bit of distracting animation at the end (where it seems to repeat the latter part of the animation). With reasonably simple animations, I rarely see this symptom on the iPhone 5 (though I routinely see it on the simulator when working on slow laptop). If I

How to present a half modal view controller over the top with iOS 7 custom transitions

早过忘川 提交于 2019-12-03 01:15:53
问题 How would I go about presenting a "half view" controller over the top of main view controller? Requirements: - Present a second view controller that slides over the top of main view controller. - Second view controller should only show over half of the main view controller - Main view controller should remain visible behind second view controller (transparent background, not showing black underneath) - Second view controller should animate in with animation similar to modal vertical cover, or