반응형
Notice
Recent Posts
Recent Comments
Link
목록딜리게이트 (1)
투케이2K
45. (swift/xcode) delegate 딜리게이트 사용해 뷰 컨트롤러 간 데이터 공유 수행 실시 - 인텐트 데이터 확인
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : SWIFT [사용 클래스 : 스토리 보드에서 Main , Sub 버튼 생성 필요] [ProtocolUtil 클래스] import UIKit // [protocol 정의 실시 : 클래스 외부에 선언] protocol SendData { // [인풋 파라미터 : 뷰 컨트롤러 , String 데이터] func sendValue(_vc: UIViewController, _value : String) } [MainController 클래스] import UIKit class MainController: UIViewController { // [뷰 컨트롤러 메모리 로드 수행 실시] override func viewDidLoad() { super..
Swift
2022. 2. 27. 12:13