뷰 컨트롤러에서 모달로 표시한 뷰 컨트롤러를 닫을 때 사용하는 것.
@IBAction func closeButtonTapped(_ sender: UIButton) {
dismiss(animated: true completion: nil)
}
Apple Developer Documentation
developer.apple.com
iOS Lifecycle When Dismissing a Modal View With .pageSheet in iOS 13
Two key points in the behavior of the new modal view when it is dismissed
medium.com
Pushing, Popping, Presenting, & Dismissing ViewControllers
I recently found myself in a situation where I had presented a UINavigationController modally and then pushed UIViewControllers within the…
medium.com
'IOS > Swift' 카테고리의 다른 글
Swift] privacy-sensitive data 해결하는 법 (0) | 2021.01.15 |
---|---|
Xcode에서의 리팩터링, 리네임 (Rename or refactor in Xcode) (0) | 2021.01.10 |
swift 문자 숫자 전환하기 (0) | 2020.12.30 |
댓글