
Assistant 모드 단축키: Control + Command + Alt + Enter 컴포넌트 연결 Assistant 모드에서 컴포넌트를 직접 코드로 drag & drop 하여 연결한다. 이미지나 라벨 등의 컴포넌트는 변수로 연결되어 디자인 등을 수정 가능하며 버튼 등의 컴포넌트는 함수로 연결되어 동작에 대한 이벤트를 수정할 수 있다 @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var label: UILabel! @IBOutlet weak var button: UIButton! @IBAction func buttonTapped(_ sender: Any) { // print("버튼 눌림") reload() }

ViewController 연결 …ViewController.swift 생성 후 스토리보드의 ViewController에서 Custom Class 의 Class 와 Identity의 Storyboard ID 를 수정한다 최초 로딩 관련 함수 viewWillAppear → viewDidLoad → viewDidAppear override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // print("viewWillAppear") } override func viewDidLoad() { super.viewDidLoad() // print("viewDidLoad") reload() // Do any additional setup..