iOS观察者模式
2019-05-15
KVC与KVO简介
- KVC
KVC(Key-value coding)是一种间接更改对象状态的方式。
官方文档描述:
Key-value coding is a mechanism for accessing an object’s properties indirectly, using strings to identify properties, rather than through invocation of an accessor method or accessing them directly through instance variables. In essence, key-value coding defines the patterns and method signatures that your application’s accessor methods implement.
iOS的图片框架
2019-05-15
前言
今年五月份进的新公司,接手的第一个新项目,里面我主要负责发帖,具体是图文,不包括视频。由于时间紧急,开发时间只有3天,实际上包括开发,测试和修复BUG,用了差不多3周的时间,第一周开发完成基本功能,后面两周测试和修复BUG,由于当时没有做过相册相关的功能,也因为时间紧急,所以,使用了一个第三方的库,大家可以去看一下,写的比较全面。后来,项目完成之后,终于有时间,静下心慢慢研究iOS的图片框架了,个人对于不懂的东西,好奇心和求知欲还是比较强的。
UIDynamicAnimator
2019-05-15
动力系统(What is the UIKit Dynamics?)
动力系统的引入,并不是替代CoreAnimation,而是对模拟现实世界物体运动的补充,比如,碰撞,重力,悬挂等等。所以说,UIKit动力系统的引入,大大简化了一些交互动画(不需要自己实现一些模拟现实世界物理动力系统的动画),丰富了UI设计。