]> git.saurik.com Git - apple/security.git/blob - Keychain/KeychainItemCell.m
Security-57031.30.12.tar.gz
[apple/security.git] / Keychain / KeychainItemCell.m
1 //
2 // KeychainItemCell.m
3 // Security
4 //
5 // Created by John Hurley on 10/22/12.
6 //
7 //
8
9 #import "KeychainItemCell.h"
10 #import <QuartzCore/QuartzCore.h>
11
12 @implementation KeychainItemCell
13
14 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
15 {
16 self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
17 if (self) {
18 // Initialization code
19 }
20 return self;
21 }
22
23 - (void)setSelected:(BOOL)selected animated:(BOOL)animated
24 {
25 [super setSelected:selected animated:animated];
26
27 // Configure the view for the selected state
28 }
29
30 + (NSString *)reuseIdentifier
31 {
32 return @"KeychainItemCellIdentifier";
33 }
34
35 - (void)startCellFlasher
36 {
37 CABasicAnimation *theAnimation = NULL;
38
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"];
47 }
48
49 @end