IOS/Swift
IOS dismiss
긴모양
2021. 1. 21. 13:51
뷰 컨트롤러에서 모달로 표시한 뷰 컨트롤러를 닫을 때 사용하는 것.
@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