Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- swiftUI
- UITextView
- Protocol
- ribs
- uitableview
- Xcode
- 클린 코드
- 리팩토링
- ios
- 리펙토링
- clean architecture
- tableView
- uiscrollview
- 리펙터링
- 애니메이션
- Refactoring
- map
- Human interface guide
- rxswift
- RxCocoa
- collectionview
- SWIFT
- MVVM
- swift documentation
- 스위프트
- HIG
- Observable
- combine
- UICollectionView
- Clean Code
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] AppDelegate 참조 방법 본문
- AppDelgate 테스트용 함수
// testPrint()
func testPrint() {
print("Test!!")
}
- AppDelegate 참조
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
appDelegate.testPrint()
}
}
}
'iOS 기본 (swift)' 카테고리의 다른 글
[iOS - swift] HitTest 개념 (first responder, responder chain) (0) | 2021.02.09 |
---|---|
[iOS - swift] semantic, 버튼안의 내용 정렬 (0) | 2021.02.06 |
[iOS - swift] Metatype (메타 타입), generics (제네릭) (0) | 2021.01.29 |
[iOS - swift] 화면 전체의 Interaction을 off, on 방법 (0) | 2021.01.24 |
[iOS - swift] UIWindow, makeKeyAndVisible() (0) | 2021.01.24 |
Comments