안녕하세요, xcode 3.2.3에 앱을 쓰고 있습니다. 내가하고 싶은 것은 다른보기로 전환하는 것이지만 최선의 방법은 확실치 않습니다. 나는PresentModalViewController 또는 addsubview?
PreferencesViewController *screen = [[PreferencesViewController alloc]initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:screen animated:YES];
[screen release];
또는 사용 ...
PreferencesViewController *screen = [[PreferencesViewController alloc]initWithNibName:nil bundle:nil];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self.view addSubview:screen.view];
[UIView commitAnimations];
나는이 방법 중 몇 가지 문제가 ...이 두 가지 방법 중 하나를 그것을 할 수 있습니다. presentModalViewController를 사용하고 PreferencesViewController에서 메모리 경고를 시뮬레이트하면 앱이 다운됩니다. 두 번째 방법은 그렇지 않습니다. 그러나 두 번째 방법은 플립 애니메이션 중에 내 버튼이 이상하게 보입니다.
누군가가 잘못되었다고 말하거나 어떤 방법으로 조언 할 수 있습니까? 오른쪽입니다.
감사