Skip to content

Commit

Permalink
Add (UIInterfaceOrientation) on
Browse files Browse the repository at this point in the history
UIInterfaceOrientation o = [[UIApplication sharedApplication] statusBarOrientation];
to solve building warning on XCode4.2 and iOS SDK 5.0
  • Loading branch information
JmeHsieh committed Jul 5, 2011
1 parent 1710da9 commit 8f27b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ASIAuthenticationDialog.m
Expand Up @@ -133,7 +133,7 @@ - (void)orientationChanged:(NSNotification *)notification
{
[self showTitle];

UIInterfaceOrientation o = [[UIApplication sharedApplication] statusBarOrientation];
UIInterfaceOrientation o = (UIInterfaceOrientation)[[UIApplication sharedApplication] statusBarOrientation];
CGFloat angle = 0;
switch (o) {
case UIDeviceOrientationLandscapeLeft: angle = 90; break;
Expand Down

0 comments on commit 8f27b7b

Please sign in to comment.