File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,10 @@ ZDKUIIsLandscape()
187187CG_INLINE CGRect
188188CGRectMakeCenteredInScreen (CGFloat width, CGFloat height)
189189{
190+ #pragma clang diagnostic push
191+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
190192 CGRect screen = [UIScreen mainScreen ].bounds ;
193+ #pragma clang diagnostic pop
191194
192195 Boolean isLandscape = ZDKUIIsLandscape ();
193196
@@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
243246CG_INLINE CGRect
244247ZDKUIScreenFrame ()
245248{
249+ #pragma clang diagnostic push
250+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
246251 CGSize screenSize = [UIScreen mainScreen ].bounds .size ;
252+ #pragma clang diagnostic pop
247253
248254 CGFloat width = screenSize.width ;
249255 CGFloat height = screenSize.height ;
Original file line number Diff line number Diff line change @@ -187,7 +187,10 @@ ZDKUIIsLandscape()
187187CG_INLINE CGRect
188188CGRectMakeCenteredInScreen (CGFloat width, CGFloat height)
189189{
190+ #pragma clang diagnostic push
191+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
190192 CGRect screen = [UIScreen mainScreen ].bounds ;
193+ #pragma clang diagnostic pop
191194
192195 Boolean isLandscape = ZDKUIIsLandscape ();
193196
@@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
243246CG_INLINE CGRect
244247ZDKUIScreenFrame ()
245248{
249+ #pragma clang diagnostic push
250+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
246251 CGSize screenSize = [UIScreen mainScreen ].bounds .size ;
252+ #pragma clang diagnostic pop
247253
248254 CGFloat width = screenSize.width ;
249255 CGFloat height = screenSize.height ;
You can’t perform that action at this time.
0 commit comments