본문 바로가기
iOS/iOS

뒤로가기 스와이프 감지

by 패쓰킴 2022. 6. 2.
728x90
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (navigationController.topViewController.transitionCoordinator) {
        [navigationController.topViewController.transitionCoordinator notifyWhenInteractionChangesUsingBlock:^(id<UIViewControllerTransitionCoordinatorContext> context) {
            if (context.isCancelled == NO) { // back 성공
               // do something...
            }
        }];
    }
}

 

참고: https://eeyatho.tistory.com/88?category=929245

728x90

'iOS > iOS' 카테고리의 다른 글

버전업 앱스토어 배포  (0) 2022.06.10
화면 간 데이터 전달  (0) 2022.06.10
Local DB 결정 시 참고 사이트  (0) 2022.04.22
UILabel에 이미지 넣기  (0) 2022.04.20
PDFView  (0) 2022.04.11

댓글