iOS常用宏定义

#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]

你可能感兴趣的:(iOS常用宏定义)