Hidden CATransition animations on iOS 4 (camera iris animation)

I am trying to achieve camera iris animations from an Apple camera app. It is also found in many other applications, such as RedLaser, Sudoku Grab, so it seems that Apple’s rules are all right, even if you are closed.

Hidden CATransition animations are hidden here: http://iphonedevwiki.net/index.php/UIViewAnimationState

However, I can’t get any of the hidden ones to work, the public ones work fine. Could this be a change in iOS 4? All the information I find in these hidden animations seems a bit outdated.

Here is my code:

CATransition *animation = [CATransition animation];
animation.delegate = self;
animation.duration = 2.0;
animation.timingFunction = UIViewAnimationCurveEaseInOut;
animation.type = @"cameraIris";

[self.window.layer addAnimation:animation forKey:nil];

Using "show" as "animation.type" works great with my code.

- iOS 4? ? RedLaser iOS 4 ( iOS 4).

+3
1

, Apple. API- . api , .

+1

Source: https://habr.com/ru/post/1764613/


All Articles