Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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