Transfer animation excessive effect (Private API), transfer api

Source: Internet
Author: User

Transfer animation excessive effect (Private API), transfer api

There are many types of switches in the lower bound of the IOS system, but we found that there are only one or two switches in use. In fact, this is related to Apple's philosophy, that is, a simple and unified interface. In this way, users can easily use other products as long as they have used their products. However, with the development of mobile terminals, people have higher and higher requirements, and their learning capabilities are constantly improved. The interface also tends to be "harmonious" in human-computer interaction ".

It is also necessary to set the corresponding animation effects based on different scenarios. Here is the transition effect of a private transfer Animation:

Fade

Excessive cross-Fade Effect

Push

The new view releases the old view

MoveIn

Move the New View to the old view

Reveal

Remove the old view to display the New View

Cube

Cube tumble Effect

OglFlip

Effects of turning up, down, left, and right

SuckEffect

Shrink effect, such as a piece of cloth being extracted

RippleEffect

Water drop effect (like a drop of water on the screen, then ripple)

PageCurl

Page flip

PageUnCurl

Page flip down

CameraIrisHollowOpen

Camera Lens opening Effect

CameraIrisHollowClose

Camera Lens off Effect

Transition animation CATransition has two basic attributes: "type" and "subtype". They are set to the animation type (type as above) and animation direction. (Some animations cannot be set without the animation direction)

Easy to use

CATransition * transition = [[CATransitionalloc] init];

Transition. duration =. 5;

Transition. type = @ "cube ";

Transition. subtype = kCATransitionFromRight;

SecendViewController * secend = [[SecendViewControlleralloc] init];

[Self. navigationController. view. layer addAnimation: transition forKey: nil];

[Self. navigationControllerpushViewController: secendanimated: YES];


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.