Restart animation after background mode

This commit is contained in:
Yann Diorcet 2012-09-27 10:18:01 +02:00
parent 15db9f3749
commit 3882552cc0

View file

@ -84,6 +84,7 @@
@synthesize detailsLeftSwipeGestureRecognizer;
@synthesize detailsRightSwipeGestureRecognizer;
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString*)identifier {
@ -122,11 +123,21 @@
[UICallCell adaptSize:videoDownloadBandwidthHeaderLabel field:videoDownloadBandwidthLabel];
[UICallCell adaptSize:videoUploadBandwidthHeaderLabel field:videoUploadBandwidthLabel];
[UICallCell adaptSize:videoIceConnectivityHeaderLabel field:videoIceConnectivityLabel];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(applicationWillEnterForeground:)
name:UIApplicationWillEnterForegroundNotification
object:nil];
}
return self;
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self
name:UIApplicationWillEnterForegroundNotification
object:nil];
[headerBackgroundImage release];
[headerBackgroundHighlightImage release];
@ -177,6 +188,7 @@
}
#pragma mark - Properties Functions
- (void)setData:(UICallCellData *)adata {
@ -263,6 +275,15 @@
}
#pragma mark - Event Functions
- (void)applicationWillEnterForeground:(NSNotification*)notif {
if (currentCall) {
[self startBlinkAnimation:@"blink" target:headerBackgroundHighlightImage];
}
}
#pragma mark - Animation Functions
- (void)startBlinkAnimation:(NSString *)animationID target:(UIView *)target {