페이지

2020년 1월 14일 화요일

PopupViewController #1 : use rootViewController.present when presenting Pop Up ViewController

When we are going to show Custom Popup Style ViewController, It's good to use rootViewController.present(,,,, )  method.

.rootViewController?.present( myPopupViewController, animated: true, completion: nil )

Reason 1.

self.present( myPopupViewController, animated: true, completion: nil )
    //self : SomeViewController


if self(SomeViewController) has dismissed while presenting myPopupViewController, myPopupViewController also will be dismissed without user's interaction.








댓글 없음:

댓글 쓰기