2011-03-09 7 views

답변

0

FlipView의 접근 방식은 혼란 경우이 튜토리얼 http://www.vimeo.com/5653713을 확인할 수 있습니다

- (IBAction)toggleView:(id)sender { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:[self view] cache:YES]; [[self view] addSubview:secondaryView]; [UIView commitAnimations]; } //Flips to front when "Done" is pressed - (IBAction)returnView:(id)sender { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:[self view] cache:YES]; [secondaryView removeFromSuperview]; [UIView commitAnimations]; } 

하는 .m

에서 .H 파일 사용에서이 코드

@interface MainViewController : UIViewController { 
    IBOutlet UIView *secondaryView; 
} 
- (IBAction)toggleView:(id)sender; //Action for toggle view 
- (IBAction)returnView:(id)sender; 


@end 

를 UIView의 프로그래밍

을로드합니다.

관련 문제