Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ ZDKUIIsLandscape()
CG_INLINE CGRect
CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CGRect screen = [UIScreen mainScreen].bounds;
#pragma clang diagnostic pop

Boolean isLandscape = ZDKUIIsLandscape();

Expand Down Expand Up @@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
CG_INLINE CGRect
ZDKUIScreenFrame()
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CGSize screenSize = [UIScreen mainScreen].bounds.size;
#pragma clang diagnostic pop

CGFloat width = screenSize.width;
CGFloat height = screenSize.height;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ ZDKUIIsLandscape()
CG_INLINE CGRect
CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CGRect screen = [UIScreen mainScreen].bounds;
#pragma clang diagnostic pop

Boolean isLandscape = ZDKUIIsLandscape();

Expand Down Expand Up @@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
CG_INLINE CGRect
ZDKUIScreenFrame()
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CGSize screenSize = [UIScreen mainScreen].bounds.size;
#pragma clang diagnostic pop

CGFloat width = screenSize.width;
CGFloat height = screenSize.height;
Expand Down