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

[IDLE-000] 센터 인증전 온보딩 화면 UI #57

Merged
merged 7 commits into from
Sep 11, 2024

Conversation

J0onYEong
Copy link
Contributor

변경된 점

  • 센터관리자가 로그인및 회원가입 이후 앱에 접속시 확인하는 화면 개발

센터 온보딩 화면

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-11.at.11.04.03.mp4

트러블 슈팅

  • UIPageViewController레이아웃 비정상인 동작
    아래 사진을 보면, 상단 라벨이 이미지에 의해 축소된 것을 확인할 수 있습니다.

이 문제는 뷰컨트롤러 계층을 올바르게 지정하지 않아 발생한 문제입니다.
컨테이너 뷰컨트롤러는 특정 뷰컨트롤러가 자신의 자식 뷰컨트롤러인 경우 해당 뷰컨트롤러의 뷰를 뷰계층에 추가하고 관리합니다.
즉, 부모 뷰컨트롤러의 뷰의 레이아웃이 자식 뷰컨트롤러의 뷰의 레이아웃에 관여하려면 우선 뷰컨트롤러간 부모 자식 관계가 선행되어야 올바르게 동작합니다.
관계를 올바르게 지정함으로 써 문제를 해결할 수 있었습니다.

  • NSAttributedText를 사용한 UILabel의 텍스트 중앙배치

NSAttributedText를 사용할 경우 textAlignment프로퍼티를 수정하여도 말을 텍스트가 중앙에 배치되지 않았습니다.
NSAttributedText를 사용하는 경우 NSMutableParagraph를 통해 textAlignment를 적용해 줘야합니다.

@J0onYEong J0onYEong merged commit 68387a2 into develop Sep 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant