iOS 화면전환 (2) 썸네일형 리스트형 아이폰 가로모드 & 세로모드 화면회전과 관련된 함수는 UIInterfaceOrientation이고 UIViewController에 상속되어 있다. 호출되는 함수 // Override to allow rotation. Default returns YES only for UIInterfaceOrientationPortrait - shouldAutorotateToInterfaceOrientation // Notifies when rotation begins, reaches halfway point and ends. - willRotateToInterfaceOrientation - didRotateFromInterfaceOrientation 현재 디바이스의 모드가 어떤건지 확인 하는 함수 UIInterfaceOrientation orien.. CATransition 이용(화면전환 에니메이션) 화면전환 기법중에 CATranstision 기법을 사용하는 방법입니다. (네비게이션 컨트롤에서 뷰를 전환하는 방식과 비슷합니다.) CATrasition 적용방법 다음 framework 추가 QuartzCore.framework 헤더 #import 소스추가 /* 효과지정(setType) kCATransitionFade: 서서히 사라지는 효과로 subType없음 kCATransitionMoveIn: 레이어가 미끄러지듯이 나옴(subType으로 kCATransitionFrom방향을 지정할 수 있음) kCATransitionPush: 레이어의 내용물을 밀어내는 효과로 위와 같은 subType 지정 가능 kCATransitionReveal: 천천히 레이어의 내용물이 나타나는 효과로 위와 같은 subType 지정 .. 이전 1 다음