Skip to content

Instantly share code, notes, and snippets.

@hatfinch
Created August 9, 2010 09:26
Show Gist options
  • Save hatfinch/515199 to your computer and use it in GitHub Desktop.
Save hatfinch/515199 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface OTActivityIndicatorView : UIActivityIndicatorView
{
}
@end
#import "OTActivityIndicatorView.h"
@implementation OTActivityIndicatorView
- (void)didMoveToWindow
{
if (self.window)
[self startAnimating];
else
[self stopAnimating];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment