custom-transition

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

假如想象 提交于 2019-12-02 14:32:45
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 iOS 7 custom transition - User can still interact with buttons on main view controller when second

Touches not recognized after custom transition

…衆ロ難τιáo~ 提交于 2019-12-02 04:37:35
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 call [container insertSubview:toViewController.view aboveSubview:fromViewController.view]; the touches

iOS presenting view controller animated as 'Push' (right-left animation)

◇◆丶佛笑我妖孽 提交于 2019-12-01 12:14:55
问题 Currently, I have a view controller presenting other view controller. What I'm trying to do is to recreate the default animation used when pushing a view controller. My current approach is: FirstViewController : @IBAction private func push(sender: AnyObject) { let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("SecondViewController") let transition = CATransition() transition.duration = 0.5 transition.timingFunction = CAMediaTimingFunction(name:

Circular transition (mask) in iOS and Objective C

天涯浪子 提交于 2019-12-01 01:15:58
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): //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) { //let button = CGRect.init(x: 30, y: selfView.frame.size.height - 15, width: 45, height: 45) let button =

Navigation controller top layout guide not honored with custom transition

十年热恋 提交于 2019-11-27 17:26:17
Short version: I am having a problem with auto layout top layout guide when used in conjunction with custom transition and UINavigationController in iOS7. Specifically, the constraint between the top layout guide and the text view is not being honored. Has anyone encountered this issue? Long version: I have a scene which has unambiguously define constraints (i.e. top, bottom, left and right) that renders a view like so: But when I use this with a custom transition on the navigation controller, the top constraint to the top layout guide seems off and it renders is as follows, as if the top

Navigation controller top layout guide not honored with custom transition

孤街醉人 提交于 2019-11-26 18:59:04
问题 Short version: I am having a problem with auto layout top layout guide when used in conjunction with custom transition and UINavigationController in iOS7. Specifically, the constraint between the top layout guide and the text view is not being honored. Has anyone encountered this issue? Long version: I have a scene which has unambiguously define constraints (i.e. top, bottom, left and right) that renders a view like so: But when I use this with a custom transition on the navigation controller

Navigation controller custom transition animation

∥☆過路亽.° 提交于 2019-11-26 14:53:13
I've been following some tutorials to create custom animation while transitioning from one view to another. My test project using custom segue from here works fine, but someone told me it's not encouraged anymore to do custom animation within a custom segue, and I should use UIViewControllerAnimatedTransitioning . I followed several tutorials that make use of this protocol, but all of them are about modal presentation (for example this tutorial ). What I'm trying to do is a push segue inside a navigation controller tree, but when I try to do the same thing with a show (push) segue it doesn't

Navigation controller custom transition animation

偶尔善良 提交于 2019-11-26 04:04:39
问题 I\'ve been following some tutorials to create custom animation while transitioning from one view to another. My test project using custom segue from here works fine, but someone told me it\'s not encouraged anymore to do custom animation within a custom segue, and I should use UIViewControllerAnimatedTransitioning . I followed several tutorials that make use of this protocol, but all of them are about modal presentation (for example this tutorial). What I\'m trying to do is a push segue