在pch里面定义

2018-08-21  本文已影响0人  吕谊在

#define SCREEN_BOUNDS [UIScreen mainScreen].bounds

#define SCREEN_SIZE [UIScreen mainScreen].bounds.size

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

//登录textField尺寸

#define RECT_LOGIN_TEXTFIELD CGRectMake(20*0.5,0, SCREEN_WIDTH - (20*0.5)*2,75*0.5)

//导航条高度

#define HEIGHT_NAVIGATIONBAR64

//随机颜色

#define COLOR_RGBA(r,g,b,a) [UIColor colorWithRed:(r/255.0) green:(g/255.0) blue:(b/255.0) alpha:a]

#define COLOR_RGB(r,g,b) COLOR_RGBA(r,g,b,1.0)

上一篇下一篇

猜你喜欢

热点阅读