The material of Michael's Lesson.
More classes please go to http://www.zencher.com/
FB Page : https://www.facebook.com/pages/Developers-note/226724001803
Blogger : http://iosdevelopersnote.blogspot.tw/
18. Extract what into a class ?
- (void)flipOver:(NSString *) direction {
CATransition* transition = [CATransition animation];
transition.timingFunction = [CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseIn];
transition.duration = 0.5f;
transition.type = @"flip";
transition.subtype = direction;
[self.layer removeAllAnimations];
[self.layer addAnimation:transition forKey:kCATransition];
}
should be related to the view object
13年9月1⽇日星期⽇日