ios 下滑 转动图片
2016-03-22 14:10
417 查看
摘要: ios 下滑 转动图片 _currentY /100 * 180; //_currentY 当前下滑偏移量
if(!_flag){ _firstY = scrollView.contentOffset.y*-1; _flag = YES; }else { _currentY = (scrollView.contentOffset.y*-1 -64); } YLLog(@"%f",_currentY); int x = _currentY /100 * 180;//arc4random() % 360; // 计算秒针转多少度 //CGFloat secondA = x * perSecondA; _secondLayer.transform = CGAffineTransformMakeRotation(x *M_PI / 180.0);
相关文章推荐
- ios block 重复引用
- iOS应用获取当前设备连接的wifi的名字
- IOS retain,copy,assign理解 区别 使用
- React Native(ios)项目中logo,启动屏设置
- iOS 9 新特性:开发者集合篇(不断更新中......)
- IOS学习之IOS端账号密码登入和后台校验方式
- iOS中传感器的基本使用
- iOS 崩溃错误分析
- iOS给客户打包ipa 文件
- iOS集成百度地图方法步骤
- ios开发杂项(基础性介绍等)
- 项目适配iOS9遇到的一些问题及解决办法(更新两个小问题)
- iOS图片拉伸技巧
- iOS 30多个iOS常用动画,带详细注释
- iOS 图片左右反转 反向
- iOS 宏(define)与常量(const)的正确使用
- iOS9.3
- iOS 导出 ipa 包时 三个选项的意思
- iOS开发 选择目录未找到
- iOS-AutoresizesSubviews 属性详解