Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
변경된 점
센터 온보딩 화면
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-11.at.11.04.03.mp4
트러블 슈팅
아래 사진을 보면, 상단 라벨이 이미지에 의해 축소된 것을 확인할 수 있습니다.
이 문제는 뷰컨트롤러 계층을 올바르게 지정하지 않아 발생한 문제입니다.
컨테이너 뷰컨트롤러는 특정 뷰컨트롤러가 자신의 자식 뷰컨트롤러인 경우 해당 뷰컨트롤러의 뷰를 뷰계층에 추가하고 관리합니다.
즉, 부모 뷰컨트롤러의 뷰의 레이아웃이 자식 뷰컨트롤러의 뷰의 레이아웃에 관여하려면 우선 뷰컨트롤러간 부모 자식 관계가 선행되어야 올바르게 동작합니다.
관계를 올바르게 지정함으로 써 문제를 해결할 수 있었습니다.
NSAttributedText를 사용할 경우 textAlignment프로퍼티를 수정하여도 말을 텍스트가 중앙에 배치되지 않았습니다.
NSAttributedText를 사용하는 경우 NSMutableParagraph를 통해 textAlignment를 적용해 줘야합니다.