美文网首页
OC 宽高比例计算宏定义

OC 宽高比例计算宏定义

作者: 咸鱼有只喵 | 来源:发表于2019-02-27 14:52 被阅读0次
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define BCYWidthScale(width) (width)*(kScreenWidth)/375
#define BCYHeightScale(height) (height)*(kScreenHeight)/375

相关文章

网友评论

      本文标题:OC 宽高比例计算宏定义

      本文链接:https://www.haomeiwen.com/subject/mxkfuqtx.html