File tree 1 file changed +1
-10
lines changed 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -74,23 +74,14 @@ +(DeviceVersion)deviceVersion {
74
74
+(DeviceSize)deviceSize {
75
75
76
76
CGFloat screenHeight;
77
-
78
77
UIInterfaceOrientation orientation = [[UIApplication sharedApplication ] statusBarOrientation ];
79
78
80
79
if (orientation == UIDeviceOrientationPortrait)
81
80
screenHeight = [[UIScreen mainScreen ] bounds ].size .height ;
82
81
83
82
else if ((orientation == UIDeviceOrientationLandscapeRight) || (orientation == UIInterfaceOrientationLandscapeLeft))
84
83
screenHeight = [[UIScreen mainScreen ] bounds ].size .width ;
85
-
86
- CGFloat screenHeight = ({
87
- // consider landscape orientation status
88
- UIDeviceOrientation orientation = [[UIDevice currentDevice ] orientation ];
89
- BOOL isLandscape = (orientation == UIDeviceOrientationLandscapeLeft || orientation == UIDeviceOrientationLandscapeRight);
90
- CGFloat screenHeight = [[UIScreen mainScreen ] bounds ].size .height ;
91
- CGFloat screenWidth = [[UIScreen mainScreen ] bounds ].size .width ;
92
- screenHeight = isLandscape ? screenWidth : screenHeight;
93
- });
84
+
94
85
95
86
if (screenHeight == 480 )
96
87
return iPhone35inch;
You can’t perform that action at this time.
0 commit comments