2011-03-26 4 views
0

첫 번째보기를 숨기고 두 번째보기를 부드럽게 표시하려는 iPhone 응용 프로그램이 있습니다. 내 코드는 다음과 같습니다.보기를 닫은 다음 다른보기를 표시 하시겠습니까?

[self dismissModalViewControllerAnimated:NO]; 

SettingsViewController *screentwothree = [[SettingsViewController alloc] initWithNibName:@"settingsView" bundle:nil]; 
screentwothree.modalTransitionStyle = UIModalTransitionStyleCoverVertical; 
[self presentModalViewController:screentwothree animated:NO]; 
[screentwothree release]; 
} 

그러나 오류없이 충돌합니다.

도와주세요!
Coulton

추신 : UINavigationView를 사용하는 것이 더 쉬울까요? 그렇다면 몇 가지 예제 코드를 게시 할 수 있습니까? 감사!

답변

0

delay를 사용하여 performSelector를 사용하면 두 번째보기가 첫 번째보기를 반주기 한 후 0.5 초가 표시됩니다.
애니메이션을 사용하면 더 부드럽게 전환 할 수 있습니다.

관련 문제