iOS常用宏定义

2017-02-19  本文已影响0人  ray_1942

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

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

#define STAND_DEFAULT(_key) [[NSUserDefaults standardUserDefaults] objectForKey:_key]

#define Stand_Default_Set_Object(_object,_key) [[NSUserDefaults standardUserDefaults] setObject:_object forKey:_key]

上一篇下一篇

猜你喜欢

热点阅读