Skip to content

Commit

Permalink
Merge pull request #82 from sunkehappy/patch-1
Browse files Browse the repository at this point in the history
Remove one useless variable height
  • Loading branch information
Marxon13 committed Sep 13, 2015
2 parents 56f020c + 53a3c25 commit 71c237e
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -250,20 +250,13 @@ - (void)drawIndeterminateWithInterfaceOrientation:(UIInterfaceOrientation)interf
//Calculate the frame of the navigation bar, based off the orientation.
CGSize screenSize = [UIScreen mainScreen].bounds.size;
CGFloat width = 0.0;
CGFloat height = 0.0;
//Calculate the width of the screen
if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
//Use the maximum value
width = MAX(screenSize.width, screenSize.height);
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
height = 32.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
} else {
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
}
} else {
//Use the minimum value
width = MIN(screenSize.width, screenSize.height);
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
}

//Create the pattern image
Expand Down

0 comments on commit 71c237e

Please sign in to comment.