Anchorpoint_the mythology handbook
The anchorPoint handbook
2023-06-13 09:14:45 时间
之前做一个imageview的transform的动画,从scale(1,1)变成scale(0.3,0.3)变化是以imagview为中心点的,想要改成以imageview的顶部中间位置为变化起点,也就是anchorPoint(0.5,0.0),发现会有问题,设置了anchorPoint之后,imageview的位置发生了变化,变化之后的中心点的位置成了变化之前的顶部的位置,然后变化还是从新的frame的中心店开始变化了,要解决这个情况,需要在设置了anchorPoint之后,再重新设置一下frame就OK了。相关链接: http://www.tuicool.com/articles/MvI7fu3
相关公式:
position.x = frame.origin.x + anchorPoint.x * bounds.size.width; position.y = frame.origin.y + anchorPoint.y * bounds.size.height;
因此,修改anchorPoint,会导致frame移动
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/184440.html原文链接:https://javaforall.cn
相关文章
- Above-the-Fold Loading 加载机制在 Spartacus Storefront 里的应用
- ORA-19295: XQST0060: It is a static error if the name of a function in a function declaration is not in a namespace (expanded QName has a null namespace URI) ORACLE 报错 故障修复 远程处理
- ORA-19955: only one open thread is allowed to change the DBID ORACLE 报错 故障修复 远程处理
- ORA-22955: The cardinality parameter is not within the allowed limits ORACLE 报错 故障修复 远程处理
- ORA-25199: partitioning key of a index-organized table must be a subset of the primary key ORACLE 报错 故障修复 远程处理
- ORA-32341: The EXPLAIN_MVIEW facility failed to explain the materialized view “string”.”string” ORACLE 报错 故障修复 远程处理
- ORA-46014: The value of the “aclFile” element is too long. ORACLE 报错 故障修复 远程处理
- ORA-46015: The value of the “paramDatatype” element is too long. ORACLE 报错 故障修复 远程处理
- ORA-48486: The file [string] exceeds the maximum length [string] ORACLE 报错 故障修复 远程处理
- ORA-48491: The program name is too long, exceeds the maximum length [string] ORACLE 报错 故障修复 远程处理
- ORA-53410: The attribute string does not conform to the VM rule. ORACLE 报错 故障修复 远程处理
- ORA-54517: outer ring is on the same plane and overlaps another outer ring ORACLE 报错 故障修复 远程处理
- ORA-64107: The XMLIndex has been successfully altered but the metadata could not be updated. ORACLE 报错 故障修复 远程处理
- ORA-13906: The tablespace is not of the right type. ORACLE 报错 故障修复 远程处理
- ORA-15561: workload replay client cannot connect to the remapped connection with conn_id : string ORACLE 报错 故障修复 远程处理
- _tUnraveling the Mysteries of linux uint8_t(linuxuint8t)
- network performanceUnveiling the Power of Mtr Linux for Network Performance(mtrlinux)
- 界面上的文字表达技巧(The Language of the Interface)
- 「Linux 录屏软件下载」功能强大,操作简单!(Note: The translation of the title can be read as Linux Screen Recording Software Download: Powerful Functionality Simple Operation! (linux录屏软件下载)
- The Best Places to Find Linux Publications and Resources for Linux Enthusiasts(linuxpub)
- Exploring the Power of Linux: The Versatility and Potential of Aud Files(linux系统aud文件)
- Unleash Your Inner Gamer with Linux and L4D2: Discover the Ultimate Gaming Experience!(linuxl4d2)