Skip to content

Commit

Permalink
show/hide spinneredView
Browse files Browse the repository at this point in the history
  • Loading branch information
Malaar committed Jul 9, 2012
1 parent 66cae64 commit fe7bb52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MUKit/MUControllers/MUBaseViewController.m
Expand Up @@ -125,14 +125,18 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
- (void) showSpinneredView
{
spinneredViewShowCount++;
[spinneredView show];
if(spinneredViewShowCount == 1)
[spinneredView show];
}

//==============================================================================
// hide spinnered view
- (void) hideSpinneredView;
{
if(--spinneredViewShowCount == 0)
if(spinneredViewShowCount > 0)
spinneredViewShowCount--;

if(spinneredViewShowCount == 0)
[spinneredView hide];
}

Expand Down

0 comments on commit fe7bb52

Please sign in to comment.