[iOS - UIKit] dismiss(animated:completion:)

Bibi·2022년 2월 18일
0

dismiss(animated:completion:)

UIKit - UIViewController

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621505-dismiss/

dismiss = 버리다.

Dismisses the view controller that was presented modally by the view controller. (모달로 나타난 뷰 컨트롤러를 뷰 컨트롤러에 의해 삭제함.)

  • animated Bool : 애니메이션 효과를 줄지 말지
  • completion (() -> Void)? : 뷰 컨트롤러가 삭제된 후 실행할 블록. 리턴값과 매개변수가 없어야 함. nil을 지정할 수 있음.

0개의 댓글