您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页NSEnumerator 和 UIInterpolatingMo

NSEnumerator 和 UIInterpolatingMo

来源:二三四教育网
 UIInterpolatingMotionEffect *motionEffect; motionEffect = [[UIInterpolatingMotionEffect alloc]initWithKeyPath:@"center.x" type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis]; 
motionEffect.minimumRelativeValue = @(-25); 
motionEffect.maximumRelativeValue = @(25);
 [messageLabel addMotionEffect:motionEffect];
 motionEffect = [[UIInterpolatingMotionEffect alloc]initWithKeyPath:@"center.y" type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis]; 
motionEffect.minimumRelativeValue = @(-25); 
motionEffect.maximumRelativeValue = @(25); 
[messageLabel addMotionEffect:motionEffect];
NSEnumerator *enumerator = [array reverseObjectEnumerator];  
        id obj = nil;  //不确定数组里面具体对象的类型,所以定义成id 类型指针  
        while (obj = [enumerator nextObject]) { //通过枚举器,取数组里面的每一个元素  
            NSLog(@"%@", obj);                  //将元素赋给 obj, 直到数组结束  
                                                //取到的结果为nil,退出while  
        }  

本文如未解决您的问题请添加抖音号:51dongshi(抖音搜索懂视),直接咨询即可。

热门图文

Copyright © 2019-2025 how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务