IOS中的动画有两大类1.UIView的视图动画2.Layer的动画 UIView的动画也是基于Layer的动画动画的代码格式都很固定1.UIView动画一般方式[UIView beginAnimations:@"ddd" context:nil];//设置动画[UIView commitAnima...
                            
                            
                                分类:
其他好文   时间:
2014-06-30 13:13:47   
                                阅读次数:
184
                             
                         
                    
                        
                            
                            
                                需求:利用Swift语言实现OC语言中UIView类方法
[UIView
animateWithDuration:0.5
animations:^{
        bgView.alpha= 1;
 }];
在Swift语言对应的方法为:
class func animateWithDuration(duration:
NSTimeInterval, animations: ...
                            
                            
                                分类:
其他好文   时间:
2014-06-15 08:26:50   
                                阅读次数:
192
                             
                         
                    
                        
                            
                            
                                #pragma mark Core Animation- 
(IBAction)buttonPressed1:(id)sender { UIButton *button = (UIButton *)sender; 
NSInteger tag = button.tag; CATransition...
                            
                            
                                分类:
移动开发   时间:
2014-06-11 11:13:59   
                                阅读次数:
275
                             
                         
                    
                        
                            
                            
                                手动控制界面旋转的核心思路就是利用UIView的transform属性,旋转App的根视图。何为根视图?如果你的App的window.rootViewController是UINavigationController,那么根视图就是navigationController.view。为了旋转的效果和系统的一致,我们还需要为它添加一个UIView动画。...
                            
                            
                                分类:
移动开发   时间:
2014-06-07 15:28:17   
                                阅读次数:
242
                             
                         
                    
                        
                            
                            
                                IOS动画的实现方式多种多样,这里就只记录一下 beginAnimations:context 。
在你调用 beginAnimations:context:方法来启动一个动画后,动画并不会立即被执行,直 到你调用 UIView 类的 commitAnimations 类方法。你对一个视图对象执行的介于 beginAnimations:context:方法跟 commitAnimatio...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 04:08:46   
                                阅读次数:
232
                             
                         
                    
                        
                            
                            
                                ////////////////////////////////////////////////////////////////////////////////////////////最普通动画://开始动画[UIView 
beginAnimations:nil context:nil];//设定动...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 18:32:17   
                                阅读次数:
469
                             
                         
                    
                        
                            
                            
                                kCATransitionFade淡出
 kCATransitionMoveIn覆盖原图
 kCATransitionPush推出
 kCATransitionReveal底部显出来 
 
 pageCurl   向上翻一页
 pageUnCurl 向下翻一页
 rippleEffect 滴水效果
 suckEffect 收缩效果,如一块布被抽走
 cube 立方体效果
 og...
                            
                            
                                分类:
移动开发   时间:
2014-05-06 23:21:10   
                                阅读次数:
421
                             
                         
                    
                        
                            
                            
                                IOS 的动画放大与缩小,并非按照找它的中心点放大和缩小,而是左上角 
。我分析了下原来是Autolayout 与View Transforms的冲突造成的。- (void) 
addSubviewWithZoomInAnimation:(UIView*)view duration:(float)sec...
                            
                            
                                分类:
移动开发   时间:
2014-04-27 21:10:53   
                                阅读次数:
1047