PhotoFlipCardView

2,091 views
2,057 views

Published on

PhotoFlipCardView

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,091
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide





















  • PhotoFlipCardView

    1. 1. iPhone SDK PhotoFlipCardView NSZombie + Instruments 3G
    2. 2. iPhone SDK 24/7 twenty-four seven http://d.hatena.ne.jp/KishikawaKatsumi/
    3. 3. iPhone SDK • touch •Subway Map •LDR touch •MyWebClip • • •LCD Clock •
    4. 4. iPhone SDK http://github.com/kishikawakatsumi •hatena-touch •DescriptionBuilder •ldr-touch •TiledLayerView •tv-listings •UICCalendarPicker •MapKit-Route-Directions
    5. 5. iPhone SDK PhotoFlipCardView NSZombie + Instruments 3G
    6. 6. iPhone SDK PhotoFlipCardView http://dl.dropbox.com/u/285673/PhotoFlipCardView.zip
    7. 7. iPhone SDK PhotoFlipCardView • .app http://dl.dropbox.com/u/285673/PhotoFlipCardView.zip
    8. 8. iPhone SDK http://dl.dropbox.com/u/285673/PhotoFlipCardView.zip
    9. 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];
    10. 10. iPhone SDK setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:thumbView cache:YES thumbVIew fullVIew setFrame:fullView.frame addSubView:fullView
    11. 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. 12. iPhone SDK UIScrollView window or self.view (??, ??, 75.0, 75.0)
    13. 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];
    14. 14. iPhone SDK
    15. 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. 16. iPhone SDK NSZombie + Instruments http://www.markj.net/iphone-memory-debug-nszombie/
    17. 17. iPhone SDK
    18. 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
    19. 19. iPhone SDK
    20. 20. iPhone SDK
    21. 21. iPhone SDK iPhone 3G

    ×