Questions tagged [catransition]

The `CATransition` class implements transition animation for a layer. You can specify the transition effect from a set of predefined transitions or by providing a custom `CIFilter` instance.

CATransition is an Objective-C wrapper for creating view transitions and as of 3.1.2, there are 11 types of transitions 4 of which are SDK-compatible.

The CATransition class implements transition animation for a layer. You can specify the transition effect from a set of predefined transitions or by providing a custom CIFilter instance.

Apple Documentation for the CATransition class can be found here

161 questions
0
votes
3 answers

UIButton click crashes app

I have button on page 1 when i click on button i am performing some animation and navigation to new page say Page 2. On page 2 there is cancel button when i click on that i want to go back to my previuos page i.e Page 1 but on click of cancel…
Krunal
  • 6,440
  • 21
  • 91
  • 155
0
votes
2 answers

How to implement method: - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag

I have two blocks of code (described also in another topic) - (void)AnimateImage:(NSString*)direction{ self.CurrentAnimal.image = [images objectAtIndex:image_nr]; CATransition *animation = [CATransition animation]; [animation…
Kaarel
  • 170
  • 1
  • 12
0
votes
0 answers

background flashes during image swap cross disolve, CATransition

Currently I have a CATransistion that should swap out the _backgroundImageView.image with a new one. It works great... And works quickly, however the previous image will glitch during this transition randomly... Aka flash the full image for one…
theprojectabot
  • 1,163
  • 12
  • 19
0
votes
1 answer

How to display 'cameraIris' Shutter Open effect from middle of the view to out side

Now I need to add cameraIris' Shutter Open effect when switch from one view to another view. I used for navigation transactions as follows, using http://iphonedevwiki.net/index.php/CATransition CATransition *transition = [CATransition animation]; …
iOS dev
  • 2,254
  • 6
  • 33
  • 56
0
votes
1 answer

UIActivityIndicatorView keeps animating preceding CATransition pushViewController

I'm trying stop the animation on my UIActivityIndicatorView in the same method that I push a view controller using a CATransition fade. Instead of stopping the animation, then fading to the next view controller, the UIActivityIndicatorView contiues…
Snow
  • 1
  • 1
0
votes
1 answer

Undefined delay issue of ipad views animation

I have an issue with the following code. When I execute it, There is a undefined delay withing first [CATransaction commit] and CompletionBlock:. No idea what is happening there. This only happen when the app run on the device. This is the time…
chinthakad
  • 939
  • 2
  • 16
  • 31
0
votes
1 answer

CATransition and Specific Execution Time

Look at this sample code (in AppDelegate): - (void)showOtherView { if (self.viewController.view == view1) { self.viewController.view = view2; } else { self.viewController.view = view1; } CATransition *animation = [CATransition…
0
votes
1 answer

CATransition animation gets crashed sometimes

I am using a CATransition animation in my application and it works fine, but crashes some times. This is my Code: -(void)_close_btn_click:(UIButton*)button { NSLog(@"update Button %ld clicked.",(long int)[button tag]); NSInteger…
madesh
  • 11
  • 5
0
votes
3 answers

addsubview animation works only first time

I am trying add subview with animation effect using the code which work fine for the first time below. CATransition *transition = [CATransition animation]; transition.duration = 1.0; transition.type = kCATransitionMoveIn; transition.subtype =…
Priya
  • 127
  • 1
  • 3
  • 9
0
votes
1 answer

CALayer addAnimation:forKey: animates every property set before

So, I've got a CALayer from a UITableView instance. I first want to set a couple properties like the backgroundColor. Afterwards I add an animation that is supposed to make the reloading (-reloadData) look nicer. However, the CATransition I'm adding…
lbrndnr
  • 3,361
  • 2
  • 24
  • 34
0
votes
1 answer

pause catransition and resume

I used the code below to make transition CATransition *transition = [CATransition animation]; transition.duration = duration ; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type…
arachide
  • 8,006
  • 18
  • 71
  • 134
0
votes
1 answer

CATransition curling page from top

I realize there is a question with this title but it is not correctly answered. It seems impossible (on iOS 6 at least) to get a page curl animation to play from the top of the screen (i.e. peeling toward the home button). CATransition…
borrrden
  • 33,256
  • 8
  • 74
  • 109
0
votes
2 answers

How can I use CATransition to animate a portion of the screen when pushing from one UIViewController to another

I have a couple of UIViewControllers that consist of the same information on the right side but different information on the left side of the screen. I want to transition from one to the other but only animate the left side, i.e. slide the left side…
brucemartin
  • 317
  • 1
  • 5
  • 15
0
votes
2 answers

CATransition Page Curl With Spine in Middle

Getting the page curl animation to work is easy: CATransition *transition = [CATransition animation]; [transition setDelegate:self]; [transition setDuration:0.5f]; [transition setType:@"pageCurl"]; [transition setSubtype:landscape ? @"fromBottom" :…
borrrden
  • 33,256
  • 8
  • 74
  • 109
0
votes
1 answer

CATransition also animating the navigationBar

I want to make a custom animation to pop my navigation controller. I only want to animate the view, not the navigationBar. With this code I animate both, the view and the navigationBar. How can I only animate the view?? CATransition* transition =…
sergiocg90
  • 489
  • 2
  • 11
  • 24
1 2 3
10
11