告别恶心的CGRect设置
2024-09-01 02:32:57
FrameAccessor
https://github.com/AlexDenisov/FrameAccessor
Manual Install(手动安装)
All you need to do is drop FrameAccessor
files into your project, and add #include "FrameAccessor.h"
to the top of files that will use it.
你需要做的就是把文件夹FrameAccessor
拖到你的工程当中,然后引入头文件FrameAccessor.h
即可.
Example Usage
以前你要这么做才能设置frame值,看起来真傻缺!!
CGRect newFrame = view.frame;
newFrame.origin.x = 15.;
newFrame.size.width = 167.;
view.frame = newFrame;
现在你只需要这样子做就行了.
view.x = 15.;
view.width = 167.;
一切尽在不言中......
最新文章
- proxool+hsqldb数据库
- JQuery 判断浏览器及其版本
- UIViewController的edgesForExtendedLayout属性
- HDU 3342 Legal or Not (图是否有环)
- C# 数据结构 线性表(顺序表 链表 IList 数组)
- UIImageView之我的动画为什么停了?UIImageView, highLighted,animationImages
- openssl 摘要和签名验证指令dgst使用详解
- Server.MapPath() 解析
- c/c++ 动态申请数组
- thinkphp 5.0 命名空间
- 处理 Vue 单页面应用 SEO 的另一种思路
- poj 2720 Last Digits
- oracle case when及decode的用法
- 【BZOJ4554】游戏(二分图匹配,网络流)
- 20175307《Java程序设计》第5周学习总结
- JAVA四则运算字符串解释器
- 百度基础架构组-实习生面试(2016.08 java后台开发)
- 牛腩学Kotlin做Android应用
- CStringArray error C2248: 'CObject::CObject' : cannot access private member declared in class
- nexus 私服跑一跑流程