Skip to content

Instantly share code, notes, and snippets.

@jamiely
Created September 28, 2012 14:34
Show Gist options
  • Save jamiely/3800223 to your computer and use it in GitHub Desktop.
Save jamiely/3800223 to your computer and use it in GitHub Desktop.
UIImageView __block *localFeatherImageView = [ [ UIImageView alloc ] initWithFrame:CGRectMake( 0.0f, 0.0f, featherAssetSize.width, featherAssetSize.height ) ];
self->featherImageView = localFeatherImageView;
self->featherImageView.animationImages = [ featherAssetDictionary objectForKey:[ NSNumber numberWithInt:APContentDictionaryKeyAnimationImages ] ];
self->featherImageView.animationDuration = animationDuration;
self->featherImageView.center = self.center;
[ self->featherImageView startAnimating ];
[ self.superview addSubview:self->featherImageView ];
void ( ^removedFeatherImageViewBlock )( void ) = ^
{
[localFeatherImageView removeFromSuperview ];
objc_release( localFeatherImageView );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment