5 // Created by John Hurley on 10/22/12.
9 #import "KeychainItemCell.h"
10 #import <QuartzCore/QuartzCore.h>
12 @implementation KeychainItemCell
14 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
16 self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
18 // Initialization code
23 - (void)setSelected:(BOOL)selected animated:(BOOL)animated
25 [super setSelected:selected animated:animated];
27 // Configure the view for the selected state
30 + (NSString *)reuseIdentifier
32 return @"KeychainItemCellIdentifier";
35 - (void)startCellFlasher
37 CABasicAnimation *theAnimation = NULL;
39 theAnimation=[CABasicAnimation animationWithKeyPath:@"opacity"];
40 theAnimation.duration=0.75;
41 theAnimation.repeatCount=6; //HUGE_VALF;
42 theAnimation.autoreverses=YES;
43 theAnimation.fromValue=[NSNumber numberWithFloat:0.0];
44 theAnimation.toValue=[NSNumber numberWithFloat:1.0];
45 theAnimation.removedOnCompletion = TRUE;
46 [_itemStatus.layer addAnimation:theAnimation forKey:@"animateOpacity"];