UIView官方文档

UIView官方文档
地址:
1.Views
2.View and Window Architecture
UIView 动画属性
frame—Use this to animate position and size changes for the view.

bounds—Use this to animate changes to the size of the view.

center—Use this to animate the position of the view.

transform—Use this to rotate or scale the view.

alpha—Use this to change the transparency of the view.

backgroundColor—Use this to change the background color of the view.

contentStretch—Use this to change how the view’s contents stretch.

transform
原点是center 或者 anchorPoint
方法: beginAnimations:context:

position与anchorPoint
摘自动画必会 - 彻底理解position与anchorPoint(动画
1.position是layer中的anchorPoint在superLayer中的位置坐标。
2.anchorPoint 动画transform 的基准点,取值范围是(0,0)到(1,1),其中(0,0)是左上角、(0.5,0.5)是中心点,(1,1)是右下角
3.互不影响原则:单独修改position与anchorPoint中任何一个属性都不影响另一个属性。
position与anchorPoint是处于不同坐标空间中的重合点,修改重合点在一个坐标空间的位置不影响该重合点在另一个坐标空间中的位置。
4.frame、position与anchorPoint有以下关系:

frame.origin.x = position.x - anchorPoint.x * bounds.size.width;

frame.origin.y = position.y - anchorPoint.y * bounds.size.height;

[runtime] MAObjCRuntime
MAObjCRuntime 是对 Objective-C runtime 的 API 的封装。如果你觉得 runtime 的 API 让你迷惑。那这个 MAObjCRuntime 就给你提供了一个对象导向型的接口方便你使用。[]
GitHub地址MAObjCRuntime
中文说明:[runtime] MAObjCRuntime

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • ViewsBecause view objects are the main way your applicati...
    梁光飞阅读 3,875评论 0 0
  • 呼吸在知道没有字幕的情况下看的。我想,以自己思想配合镜头及人物关系去慢慢揣摩导演的意图。 2007年的作品反倒有些...
    卒已阅读 1,562评论 0 0
  • 在你的脑海里,总有一段回忆存在最柔软的角落,只要稍一触碰就像重新看到了一场大雨,倾盆如柱,身心俱疲。 每个人到外婆...
    王儒星阅读 4,204评论 0 1
  • 年末了,一年已经到头 2016级毕业生,7月份毕业,至今为止已经小半年了 马上就要回家了,兜里拿着公司给的工资及福...
    Estelle小七阅读 2,915评论 0 0
  • HTTP方法用来告诉服务器应该做什么事情。HTTP状态码用来告诉客户端发生了什么事情。状态码位于响应报文段的起始行...
    Oceans言欢阅读 1,864评论 0 0

友情链接更多精彩内容