Here is my code:
When i run and build the project it does not insert the fades in between my pictures. Am i missing something here. I think i need to call this animation but where and how?
Code:
CATransition *animation = [CATransition animation];
[animation setDuration:0.5];
[animation setType:kCATransitionFade];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[theWindow layer] addAnimation:animation forKey:@"SwitchToView1"]
When i run and build the project it does not insert the fades in between my pictures. Am i missing something here. I think i need to call this animation but where and how?