iOS/iOS 자료2 화면 전환 1. 프레젠테이션 방식으로 화면 전환 present(, animated:, completion:) 프레젠테이션 체인(Presentation Chain)에 뷰 컨트롤러의 포인터가 차례로 저장됨 presentedViewController : 자신이 호출한 ViewController presentingViewController : 자신을 호출한 ViewController dismiss(animated:, completion:) ※ 주의 ※ 화면이 사라지게 처리하는 것은 사라질 화면의 뷰 컨트롤러 자신이 아니라 자신을 띄우고 있는 이전 뷰 컨트롤러다. self.dismiss(animated:) X (원래는 안되지만 잘 동작한다. 많은 개발자들이 그냥 사용하고 있다.) self.presentingViewContr.. 2019. 10. 1. iOS앱의 구조 1. 앱이 실행되는 과정 1. main() 함수 실행 (해당 파일은 이제 확인 불가) #import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } 2. UIApplicationMain() 함수 호출 (@UIApplicataionMain) import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func applicatio.. 2019. 9. 22. 이전 1 다음