-
Notifications
You must be signed in to change notification settings - Fork 11
(#25 #26) ActivityScene TotalView 연결 및 Date PickerView 구현 #103
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
Conversation
|
||
class ActivityDateFilterViewController: UIViewController { | ||
private lazy var backgroundView = UIView() | ||
private lazy var sheetView = DateFilterSheetView( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
뷰 재활용하기에 좋은 방법인 것 같아요
|
||
import UIKit | ||
|
||
class DateFilterSheetView: UIScrollView { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스크롤뷰로 구현한 이유가 궁금합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저희 goalTypeSheet과는 다르게 TabBar가 보이면서 올라오는 환경인데
코디네이터 상에서 탭바 위로 화면을 띄우려먼 너무 번거로운작업을 거쳐야 해서
FilterSheet의 높이를 키워서 띄우는 화면을 구현하였는데
스크롤뷰를 사용 안하면 높이를 키울때 그 안에있는 자식 뷰들과의 위치관계가 어색해지기 때문에
실제로 올라오는것처럼 보이기 위해 스크롤 뷰를 사용했습니다.
} | ||
} | ||
|
||
func selfResizing() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아래 두 메소드 호출을 안하면 무슨 일이 벌어지나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그 아래에서 frame 변경하는 부분은 frame.size.height = height
이렇게만 해주면 안되나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 고쳐야겠네요 ㅎ
Issue Number
Close #94 #93 #101
변경사항
주입받아 상단에 표시하도록 함
또한 height를 조절하면 내부의 View들의 레이아웃이 깨지게 되므로 UIScrollView를 상속받아 구현
를 주입받아 FilterType에 따라 PickerView에서 다르게 표시되도록 구현
새로운 기능
작업 유형
체크리스트