Created
September 24, 2010 11:25
-
-
Save alexrepty/595211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)show:(BOOL)animated { | |
self.alpha = 0.0f; | |
self.hidden = NO; | |
if (animated) { | |
[UIView beginAnimations:nil context:nil]; | |
} | |
self.alpha = 1.0f; | |
if (animated) { | |
[UIView commitAnimations]; | |
} | |
if ([_slider.subviews count] < 3) { | |
return; | |
} | |
UIImageView *thumbImageView = (UIImageView *)[_slider.subviews objectAtIndex:2]; | |
if (![thumbImageView isKindOfClass:[UIImageView class]]) { | |
return; | |
} | |
[thumbImageView addObserver:self forKeyPath:kARPageScrubberViewKeypathFrame options:NSKeyValueChangeReplacement context:(void *)thumbImageView]; | |
[_slider addObserver:self forKeyPath:kARPageScrubberViewKeypathTracking options:NSKeyValueChangeReplacement context:(void *)thumbImageView]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment