View Life Cycle 테스트 #30
jcrescent61
started this conversation in
iOS
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
View Life Cycle
ViewController의 생명주기는 대략 이렇다. 특정 시점에 코드를 실행되어야 하거나 실행 되면 안되는데 이때 생명주기를 잘 파악하고 있어야 적절히 코드를 작성하거나 문제를 파악할 수 있다.
ViewLifeCycle의 자세한 내용은 해당 링크를 통하면 된다. 바로가기
내가 실험하고 싶은 것은 두 개의 뷰에서 push or pop 등과 같은 액션이 이루어졌을때 생명주기에서 어떤 것이 불리게 되는지 체크하고 싶었다.
테스트 1 - 첫번째 뷰에서 두번째뷰 노출되었을때
테스트 2 - 뒤로가기 제스처 하다 말기
테스트 3 - 뒤로가기 완료
결론
규칙이 간단한 듯 하면서 꽤 복잡하다...그때그때 상황에 맞춰서 잘 테스트하면서 디버깅 해야겠다.
Beta Was this translation helpful? Give feedback.
All reactions