나는 스위프트에 관해서 질문이있다.신속하게 지정된 이니셜 라이저를 올바르게 구현하는 방법은 무엇입니까?
우리가 목표 - C에서 지정된 초기화를 만들 때 가끔 우리가 (해당 .xib 파일을로드하기 위해)이 작업을 수행해야 할 수 있습니다, 알고
if ((self = [super initWithNibName:@"PPFrameViewController" bundle:nil]))
{
}
스위프트에 해당하는 것이 무엇 . 바로 :
super.init(nibName: "PPFrameViewController", bundle: nil)
?
또는 그 이상입니까? UIViewController
사전
https://developer.apple.com/library/ios/DOCUMENTATION/UIKit/Reference/UIViewController_Class/index.html#//apple_ref/occ/instm/UIViewController/initWi thNibName : 번들 : – Tirth
NOT ABOUT 선택 사항에서의 이러한 질문; 이것은 지정된 초기화 프로그램의 호출 순서에 관한 것입니다. 따라서 @Tirth, 중복 참조가 잘못되었습니다. – GoZoner