[Swift] 다른 file (viewController) 간의 조작
2022. 8. 31. 12:58ㆍProgramming/Swift
private var isKorean: Bool = false
func setISKorean(isKoreanBool: Bool) {
self.isKorean = isKoreanBool
}
: Set method
@objc private func englishSettingButtonTapped() {
let englishTextViewController = EnglishTextViewController()
englishTextViewController.setISKorean(isKoreanBool: false)
self.navigationController?.pushViewController(englishTextViewController, animated: true)
}
viewController에 method로 접근한다.
👍
'Programming > Swift' 카테고리의 다른 글
[UI-Kit] CollectionView Cell Selection / Deselection (0) | 2022.11.15 |
---|---|
[Swift] CollectionView Cell _ Lingo Feedback (0) | 2022.11.01 |
📑 firestore database 접근 및 삭제 code, firestore Queries 🍎 (0) | 2022.08.28 |
➿ iOS Swift Closure & @escaping 클로저 정리 (0) | 2022.08.26 |
📄 Fileprivate 란? (0) | 2022.07.21 |