Mais conteúdo relacionado
Semelhante a PhotoFlipCardView (20)
PhotoFlipCardView
- 1. iPhone SDK
PhotoFlipCardView
NSZombie + Instruments
3G
- 3. iPhone SDK
• touch •Subway Map
•LDR touch •MyWebClip
• •
•LCD Clock •
- 5. iPhone SDK
PhotoFlipCardView
NSZombie + Instruments
3G
- 6. iPhone SDK
PhotoFlipCardView
http://dl.dropbox.com/u/285673/PhotoFlipCardView.zip
- 7. iPhone SDK
PhotoFlipCardView
• .app
http://dl.dropbox.com/u/285673/PhotoFlipCardView.zip
- 9. iPhone SDK
Thumbnail -> Full
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:thumbView cache:YES];
thumbView.frame = fullView.frame;
[thumbView addSubview:fullView];
[fullView release];
[UIView commitAnimations];
- 11. iPhone SDK
Full -> Thumbnail
[UIView beginAnimations:nil context:thumbView];
[UIView setAnimationDuration:0.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:thumbView cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:
@selector(flipAnimationFinished:finished:context:)];
thumbView.frame = thumbFrame;
[photoFlipCardImageView removeFromSuperview];
[UIView commitAnimations];
- 12. iPhone SDK
UIScrollView
window or self.view
(??, ??, 75.0, 75.0)
- 13. iPhone SDK
- (CGRect)convertRect:(CGRect)rect toView:(UIView *)view
UIImageView *thumbView =
[[UIImageView alloc]
initWithImage:button.currentImage];
thumbFrame = [self convertRect:button.frame toView:nil];
thumbView.frame = thumbFrame;
thumbView.userInteractionEnabled = YES;
[keyWindow addSubview:thumbView];
[thumbView release];
- 15. iPhone SDK
PhotoFlipCardImageView *fullView =
[[PhotoFlipCardImageView alloc]
initWithFrame:self.window.frame];
fullView.delegate = self;
fullView.contentMode = UIViewContentModeScaleAspectFit;
fullView.image = fullImage;
[fullImage release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:thumbView cache:YES];
thumbView.frame = fullView.frame;
[thumbView addSubview:fullView];
[fullView release];
[UIView commitAnimations];
- 16. iPhone SDK
NSZombie + Instruments
http://www.markj.net/iphone-memory-debug-nszombie/
- 18. iPhone SDK
[Session started at 2010-03-06 11:17:02 +0900.]
2010-03-06 11:17:06.478 ZombieDebug[30909:207] *** -[CFNumber
respondsToSelector:]: message sent to deallocated instance 0x393e2a0