catransition

CATransition white flash in background?

无人久伴 提交于 2019-12-11 04:01:56
问题 I'm trying to make a pushViewController slide in from the left, not the right, as follows: Page14Controller * controller = [[Page14Controller alloc] initWithNibName:@"Page14Controller" bundle:nil]; CATransition* transition = [CATransition animation]; transition.duration = 0.3; transition.type = kCATransitionPush; // transition.type = kCATransitionMoveIn; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; //kCATransitionMoveIn; //,

How do I slide - animate a UITableView in a view

社会主义新天地 提交于 2019-12-10 00:31:39
问题 I want to slide a UITableVIew into a view (NOT by pushing the view on top of Navigation Controller) on click of a button and then hide it back by sliding , on clicking of the same button. I want the tableView to slide inside a present view. 回答1: You animate the frame property of the table view to move it off screen or back onto screen. Here is some sample code that moves a table view off screen and moves another on screen in its place: [UIView beginAnimations:nil context:nil]; [UIView

Creating a sliding segue in Swift

北城以北 提交于 2019-12-09 07:18:14
问题 I am trying to create a segue/transition between two View Controllers that "slides" to the next View Controller. What I mean by "slide" is that it only moves as much as the translation of a pan gesture(similar to Snapchat). If you could help me with this or just point me in the right direction, that would be great. 回答1: That effect is achieved using custom interactive transitions, which were introduced in iOS7. Here are a few tutorials to check out: See Custom Transitions Using View

How to animate removeFromSuperview

故事扮演 提交于 2019-12-09 05:16:37
问题 I animated the appearance of my subview with: CATransition *transition = [CATransition animation]; transition.duration = 0.3; transition.type = kCATransitionReveal; [webView.layer addAnimation:transition forKey:nil]; [self.view addSubview:webView]; But now I want to remove my subView. How can I add animation to do this? Like other CATransition? When to add this? Before or after addSubview? 回答1: Well you could do the animation first and on the animationEndListener call removeFromSuperView

Custom Segue Animation showing black screen

守給你的承諾、 提交于 2019-12-08 07:52:20
问题 I am struck with a new problem, on presenting the destinationViewController using custom segue, during transition the source ViewController is changed to black screen, i need the screen to be as it is (my design). UIViewController *sourceViewController = (UIViewController*)[self sourceViewController]; UIViewController *destinationController = (UIViewController*)[self destinationViewController][screenshot][1] CATransition* transition = [CATransition animation]; transition.duration = 0.1;

Customise UINavigationController animation: CATransition

南楼画角 提交于 2019-12-07 07:03:04
问题 I have an UINavigationController. I made VC1 the rootViewController and programatically load VC2 from VC1 and then have the custom animation to go from VC1 to VC2. Standard. Everything is fine and good. Now, I would like to have a custom animation between the two like so: In sum, VC1 slides out of view while VC2 is beneath it. Just like a stack of paper where you slide away the first sheet (VC1) and thus reveal the sheet beneath (VC2). So what I tried is the following code which is called

Customise UINavigationController animation: CATransition

最后都变了- 提交于 2019-12-05 09:19:49
I have an UINavigationController. I made VC1 the rootViewController and programatically load VC2 from VC1 and then have the custom animation to go from VC1 to VC2. Standard. Everything is fine and good. Now, I would like to have a custom animation between the two like so: In sum, VC1 slides out of view while VC2 is beneath it. Just like a stack of paper where you slide away the first sheet (VC1) and thus reveal the sheet beneath (VC2). So what I tried is the following code which is called from VC1 in order to get to VC2. But there are problems with it: MyVC2 *vctwo = [[[MyVC2 alloc] init]

iPhone - UINavigationController - custom animation with CATransaction

梦想的初衷 提交于 2019-12-05 05:45:24
问题 I am trying to create a category for UINavigationController so I can put together a few custom animations. I came across this question and it got me started. I've come up with the following for a push function: - (void)pushViewControllerMoveInFromBottom:(UIViewController *)viewController { [CATransaction begin]; CATransition *transition; transition = [CATransition animation]; transition.type = kCATransitionMoveIn; transition.subtype = kCATransitionFromBottom; transition.duration = 0.7;

How do I slide - animate a UITableView in a view

若如初见. 提交于 2019-12-04 23:29:30
I want to slide a UITableVIew into a view (NOT by pushing the view on top of Navigation Controller) on click of a button and then hide it back by sliding , on clicking of the same button. I want the tableView to slide inside a present view. You animate the frame property of the table view to move it off screen or back onto screen. Here is some sample code that moves a table view off screen and moves another on screen in its place: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:kSlideTableDuration]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; [UIView

CATransition page curl from top

十年热恋 提交于 2019-12-04 20:44:40
I wanted to know if anyone managed a pagecurl from the top using the CATRANSITION. I have the following : CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.35]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; animation.type = @"pageCurl"; animation.subtype = kCATransitionFromTop; animation.fillMode = kCAFillModeForwards; animation.endProgress = 0.30; [animation setRemovedOnCompletion:NO]; [self.view.layer addAnimation:animation forKey:@"pageCurlAnimation"]; but unfortunately, it always does the page curl from the bottom. I