Merge pull request #218 from JmeHsieh/master
Solve building warning on Xcode 4.2 & iOS SDK 5.0
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -133,7 +133,7 @@ static const NSUInteger kDomainSection = 1; | @@ -133,7 +133,7 @@ static const NSUInteger kDomainSection = 1; | ||
| 133 | { | 133 | { |
| 134 | [self showTitle]; | 134 | [self showTitle]; |
| 135 | 135 | ||
| 136 | - UIInterfaceOrientation o = [[UIApplication sharedApplication] statusBarOrientation]; | 136 | + UIInterfaceOrientation o = (UIInterfaceOrientation)[[UIApplication sharedApplication] statusBarOrientation]; |
| 137 | CGFloat angle = 0; | 137 | CGFloat angle = 0; |
| 138 | switch (o) { | 138 | switch (o) { |
| 139 | case UIDeviceOrientationLandscapeLeft: angle = 90; break; | 139 | case UIDeviceOrientationLandscapeLeft: angle = 90; break; |
-
Please register or login to post a comment