Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

didMove(toParent:) #33

Open
samsung-ga opened this issue Jul 31, 2022 · 0 comments
Open

didMove(toParent:) #33

samsung-ga opened this issue Jul 31, 2022 · 0 comments

Comments

@samsung-ga
Copy link
Owner

samsung-ga commented Jul 31, 2022

  • container viewcontroller에서 viewcontroller가 추가되거나 제거된 후 불리우는 메소드
  • viewcontroller가 container에 추가되고싶을 때, viewcontroller가 이 메소드를 override할 수 있다.
  • 자체적으로 viewcontroller가 container viewcontroller에 추가하게 된다면 addChild(_:)메소드를 통해 자식 viewcontroller를 추가한 이후에 이 메소드는 바로 호출되어야 한다.
  • 만일 removeFormParent() 메소드로 제거하게 된다면 이 메소드는 자동으로 불리운다.
  • 이 메소드를 호출하여야 자식이 부모 viewcontroller내에서 상호작용을 할 수 있다.
  • pageviewcontroller, tabbarcontroller 등의 컨테어너 뷰 컨트롤러에 다른 uiviewcontroller가 추가/삭제 된 후에는 자동으로 호출이 된다.

Ref

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant