告别恶心的CGRect设置
2014-04-10 13:00
274 查看
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 Studio设置默认文件编码,告别乱码
- iphone手机这样设置,可以一天不用充电,告别一天多充
- Android Studio设置默认文件编码,告别乱码
- win8开机小键盘 win8设置开机自动开启数字小键盘告别Num lock
- 【11gR2】使用runfixup.sh脚本彻底告别曾经琐碎的系统参数设置步骤
- 告别恶心的博客园,重写在这开博
- 设置ArcGis的mxd保存为相对路径,告别感叹号
- 设置linux虚拟机屏幕大小,告别ctrl+alt
- (Android新手上路)actionbar完全自定义标题布局,告别繁琐的actionbar设置,看别人的然后自己琢磨出来的
- 告别CMD之Cmder右键设置
- 今天被Unity的设置恶心到了...
- Android Studio设置默认文件编码,告别乱码
- mac 设置 git 和github 告别命令行
- 处理SPS错误:只有在配置文件或 Page 指令中将启用会话状态设置为真时,才可以使用会话状态
- 关于设置虚拟内存
- setsockopt 设置socket
- VMware中Linux系统时间与主机同步以及时区设置