[iOS]学习笔记2(Animations)

1. transitionFromView

它会做这样的事情[fromView removeFromSuperview]; 

所以我会持有UIView对象,保证它不会release到retain count 0. 然后把remove的View,重新insert进来,以应对被remove的情况。

2. alwaysBounceVertical的弹力效果

_scrollView.alwaysBounceVertical = YES;

让某个UIView能产生某种垂直的“弹力效果”,可以把这个UIView加到一个UIScrollView上,然后设置alwaysBounceVertical = YES;

 

3. UIViewAnimationOptionTransitionFlipFromLeft

给UIView做翻转效果用,实现一些类似于3D效果。

 

4. Changing the UINavigationController animation style

http://www.davidhamrick.com/2011/12/31/Changing-the-UINavigationController-animation-style.html

原文地址:https://www.cnblogs.com/healerkx/p/2306752.html