告别恶心的CGRect设置
2014-05-26 14:18
218 查看
告别恶心的CGRect设置
FrameAccessor
https://github.com/AlexDenisov/FrameAccessor
Manual Install(手动安装)
All you need to do is dropFrameAccessorfiles 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.;
一切尽在不言中......
相关文章推荐
- 告别恶心的CGRect设置
- 告别恶心的CGRect设置
- (Android新手上路)actionbar完全自定义标题布局,告别繁琐的actionbar设置,看别人的然后自己琢磨出来的
- 告别恶心的博客园,重写在这开博
- 设置ArcGis的mxd保存为相对路径,告别感叹号
- 【11gR2】使用runfixup.sh脚本彻底告别曾经琐碎的系统参数设置步骤
- Android Studio设置默认文件编码,告别乱码
- 告别CMD之Cmder右键设置
- mac 设置 git 和github 告别命令行
- iphone手机这样设置,可以一天不用充电,告别一天多充
- Android Studio设置默认文件编码,告别乱码
- 设置linux虚拟机屏幕大小,告别ctrl+alt
- win8开机小键盘 win8设置开机自动开启数字小键盘告别Num lock
- 今天被Unity的设置恶心到了...
- Android Studio设置默认文件编码,告别乱码
- 手机存储被格式化!重置:索爱P802的GPRS/邮件/彩信/蓝牙设置全指南
- WindowsServer2003 + IIS6.0 + ASP.NET最新服务器安全设置技术实例 虚拟主机上设置
- ubuntu8.04下设置tftp
- c#中设置快捷键