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
1 answer

screen flash when addsubview by CATransition

Many people use this method to add animation on switching views. When I try to add animation effect on adding a subview, the view always flash once。 The reason is that the view add subview immediately at the beginning, after that, the animation…
Fannic
  • 99
  • 1
  • 6
0
votes
2 answers

UIView sliding transition fades

I've got some code inside one of my view controllers that will make sliding transition from one view to another: -(void)transitionToNewView:(UIView*)newView { UIView *superView = [self.view superview]; [superView addSubview:newView]; …
Seth
  • 5,596
  • 8
  • 42
  • 56
0
votes
2 answers

custom UIView animation in dismissModalViewController

Where is the correct place to put custom animation code for dismissing a modalviewcontroller. I tried putting the following into viewdiddisappear, viewwilldisappear but doesn't behave correctly. Any thoughts? THanks!! [UIView…
chourobin
  • 4,004
  • 4
  • 35
  • 48
0
votes
1 answer

Move a NSButton from one point to another with CATransaction but after that i can't click on it

I use below code for move a NSButton with animation from one point to another but after i do it i can't access button,means i can't click on it (it's disabled) [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:1.0]…
user437064
-1
votes
3 answers

How do I slide - animate a UITableView in a view

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.
Kiran Kulkarni
  • 1,434
  • 2
  • 18
  • 40
-1
votes
1 answer

Achieving a smooth custom transition between view controllers swift

can anyone help me fix this annoying jump/glitch bug when using a custom transition on view controller to view controller. I can't use push because I want to display the top navigation bar but hide the bottom tab bar so I have had to use a custom…
Karl Mcgeough
  • 469
  • 2
  • 7
  • 13
-1
votes
1 answer

Animated UILabel With CATransition Not Working

I'm trying to make an animated UILabel using CATransition which can fade out the original text and fade in the new text when I touch the screen. Here is my code and I can't figure out why there is no animation. Please help me. I'm using Xcode…
-1
votes
1 answer

iOS Activity Indicator

I trying to create activity indicator, currentView will be static and nextView will animate left to right, right to left, top to bottom and bottom to top. I had written the code as below. The problem I am facing is, instead of all the four…
Subramanian Raj
  • 389
  • 2
  • 5
  • 16
-1
votes
1 answer

kCATransitionFade bad_instruction

var Testing: CATransition! Testing.type = kCATransitionFade Testing.duration = 1 Testing.delegate = ColorBox I am using Swift. On the second line, I get the error EXC_BAD_INSTRUCTION. I have read into this error and have found that this could be…
-3
votes
1 answer

In a macOS Cocoa Application, I am implementing a simple glowing red dot icon for when activity is in progress. How can I make it more fluid?

I am implementing the glowing red button as a subclass of NSImageView. You can see my code here. When a background activity is in progress, the red circle image does not glow fluidly as it should. However, it starts to glow by the end of the…
Alfonso Tesauro
  • 1,730
  • 13
  • 21
-4
votes
1 answer

Initialise CATransition duration with NSNumber

I want to initialise the duration of a CATransition with a NSNumber, how do i do this, since the animation.duration is a NSTimeInterval object? - (void)startPopUpAnimation:(NSNumber *)numbers { CATransition *animation = [CATransition…
bruno
  • 2,154
  • 5
  • 39
  • 64
1 2 3
10
11