宏定义代码:
- #define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
使用
if (iPhone5)
{
sentences...
}
else
{
sentences...
}
宏定义代码:
使用
if (iPhone5)
{
sentences...
}
else
{
sentences...
}