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
- UICollectionView
- ribs
- swiftUI
- 리펙토링
- Refactoring
- Clean Code
- 리팩토링
- SWIFT
- Observable
- RxCocoa
- combine
- MVVM
- scrollview
- clean architecture
- UITextView
- uiscrollview
- 클린 코드
- tableView
- collectionview
- Xcode
- rxswift
- ios
- map
- 애니메이션
- swift documentation
- 스위프트
- HIG
- uitableview
- Human interface guide
- Protocol
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, 버튼안의 내용 정렬 (1) | 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