Skip to content

Instantly share code, notes, and snippets.

@toddfreese
Created July 6, 2010 21:48
Show Gist options
  • Select an option

  • Save toddfreese/465968 to your computer and use it in GitHub Desktop.

Select an option

Save toddfreese/465968 to your computer and use it in GitHub Desktop.
- (void)encodeWithCoder:(CPCoder)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeBool:_isAnimating forKey:EKActIndViewIsAnimating];
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
if (self) {
if ([aCoder decodeBoolForKey:EKActIndViewIsAnimating] || NO) {
_isAnimating = YES;
} else {
_isAnimating = NO;
}
}
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment