0
내 xib 파일에서 설정 한 툴바의 UIButton을 누르면 새 컨트롤러가로드되도록하려고합니다.인터페이스의 버튼을 눌러 다른보기로 전송하는 방법은 무엇입니까?
어떻게 구현합니까? FlipViewController 복제 시도했지만 두 개 이상의 가질 수 있다고 생각하지 않습니다.
내 xib 파일에서 설정 한 툴바의 UIButton을 누르면 새 컨트롤러가로드되도록하려고합니다.인터페이스의 버튼을 눌러 다른보기로 전송하는 방법은 무엇입니까?
어떻게 구현합니까? FlipViewController 복제 시도했지만 두 개 이상의 가질 수 있다고 생각하지 않습니다.
당신은 이런 좋은 애니메이션을 전환 할 수 있습니다 : 당신이 // works only in app delegate
와 주석 라인을 변경하지 않는 한 은 (앱 위임에서만 작동
UIViewController *ctrl = [[UIViewController alloc] initWithNibName:@"someXIBStuff" bundle:nil];
CAKeyframeAnimation *theAnimation = [CAKeyframeAnimation animation];
theAnimation.values = [NSArray arrayWithObjects:
[NSValue valueWithCATransform3D:CATransform3DMakeScale(1.12,1.12,1)],
[NSValue valueWithCATransform3D:CATransform3DMakeScale(1,1,1)],
nil];
theAnimation.cumulative = YES;
theAnimation.duration = 0.3;
theAnimation.repeatCount = 0;
theAnimation.removedOnCompletion = YES;
theAnimation.timingFunctions = [NSArray arrayWithObjects:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn],
nil
];
[self.window.layer addAnimation:theAnimation forKey:@"transform"];
CATransition *transition = [CATransition animation];
transition.duration = 0.3;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionFade;
transition.delegate = self;
[self.window.layer addAnimation:transition forKey:nil];
self.window.rootViewController = ctrl; // works only in app delegate
[ctrl release];