- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
CGFloat viewHeight = scrollView.height + scrollView.contentInset.top;
NSArray *cells = self.tableView.visibleCells;
for (int i = ; i < cells.count; i++) { UITableViewCell *cell = cells[i]; CGFloat y = cell.centerY - scrollView.contentOffset.y;
CGFloat p = y - viewHeight / ; CGFloat scale = cos(p / viewHeight * 0.8) * 0.85; [UIView animateWithDuration:0.15 delay: options:UIViewAnimationOptionCurveEaseInOut|UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionBeginFromCurrentState animations:^{ cell.transform = CGAffineTransformMakeScale(scale, scale); } completion:^(BOOL finished) { }]; } }

最新文章

  1. StatePattern(状态模式)
  2. JavaScript练习之for循环语句
  3. 30秒修复Ubuntu菱形乱码问题
  4. Oracle GoldenGate Veridata 12.1.3已经发布
  5. 动态加载故事storyboard
  6. MediaPlayer简单使用,绑定surfaceView实现播放视频的功能
  7. WebService-06-CXF与Spring集成
  8. SVN解锁失败的解决办法
  9. jQuery进行简单验证的正则表达式
  10. 微信Token小识
  11. Yii2 数据库操作汇总
  12. VS2013开发上位机并调用MSCcommm控件的方式
  13. java访问权限表
  14. 搭建ssh框架项目(四)
  15. Redis与Zookeeper实现分布式锁的区别
  16. LeetCode: Largest Number 解题报告 以及Comparator, CompareTo 应用
  17. [Paper] Selection and replacement algorithm for memory performance improvement in Spark
  18. initrd in linux 2.6.32.27
  19. Network - Tips
  20. Potplayer快捷键

热门文章

  1. &lt;!DOCTYPE html&gt;很重要
  2. [IOS]swift 使用AVOS的API
  3. swfupload纠结bug总结
  4. input在标签内设置禁止输入空格
  5. Python之路Day14--html
  6. pythonchallenge 解谜 Level 2
  7. Xamarin的不归路-ios模拟器没有键盘
  8. LL LR SLR LALR 傻傻分不清
  9. ARM 编译 phddns
  10. 有Maple T.A.自有试题图so easy