#define SafeAreaInsets \
({UIEdgeInsets edge;\
if (@available(iOS 11.0, *)) { edge = [UIApplication sharedApplication].delegate.window.safeAreaInsets; } else { edge = UIEdgeInsetsZero; }\
(edge);\
})\
#define SafeAreaInsets \
({UIEdgeInsets edge;\
if (@available(iOS 11.0, *)) { edge = [UIApplication sharedApplication].delegate.window.safeAreaInsets; } else { edge = UIEdgeInsetsZero; }\
(edge);\
})\
本文标题:SafeAreaInsets宏定义
本文链接:https://www.haomeiwen.com/subject/newxiktx.html
网友评论