-
Notifications
You must be signed in to change notification settings - Fork 0
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
알립니다 구현 #46
알립니다 구현 #46
Conversation
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.
대박대박 !!!!!!! 고생하셨습니다 여경팀장님이 나라다.
@@ -22,7 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |||
window = UIWindow(windowScene: windowScene) | |||
|
|||
let rootController = TabBarNavigationController( | |||
rootViewController: TabBarController() | |||
rootViewController: TicketDetailController() |
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.
다시 바꿔야 해 ㅋㅋㅋ 다음 타자가 바꿔줄거라고 믿고있어...
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.
어려운 부분을 잘 해내셨네요!! 화이팅화이팅
@@ -1,3 +1,322 @@ | |||
//// |
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.
감사합니다 : )
static var mockData: [InfoConfiguration] = [ | ||
.init(title: "알립니다", details: "※ 본 공연은 네이버 쿠폰이 적용되지 않습니다.\n※ 본 공연은 YES24공연에서 진행하는 할인쿠폰이벤트 대상에서 제외됩니다.\n※ 매수제한: 공연별 1인 4매", isExpanded: false), | ||
.init(title: "상세정보", details: ""), | ||
.init(title: "할인정보", details: ""), | ||
.init(title: "기대평", details: ""), | ||
.init(title: "공연 이미지(1)", details: "") | ||
] |
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.
여기도 Control m 해주시면 좋을 것 같아요!
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 SnapKit | ||
import Then | ||
|
||
class DetailTableViewCell: UITableViewCell { |
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.
final 붙여주세요!
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.
앗 그걸 놓쳤네요 감사합니다!
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
static let identifier: String = "DetailTableViewCell" |
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.
UITableViewCell의 identifier도 UICollectionViewCell처럼 extension으로 구현하면 어떨까요?
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.
반영완료 했습니다!
final class ExpandedView: UIView { | ||
private let firstLabel = UILabel().then { |
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.
넹~
[ ticketDetailView, | ||
buttonBackgroundView] | ||
.forEach(view.addSubview) |
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.
확인했습니다!
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.
드디어! 성공!
🎫 What is the PR?
알립니다 TicketDetailView의 전반적인 작업을 완료했습니다!
🎫 Changes
🎫 Thoughts
Expanded를 어떻게 하면 구현할 수 있을 지 공부해볼 수 있는 좋은 시간이었습니다.
TableView에 대해서 한 층 더 깊이 알아볼 수 있었던 시간..
Expanded에 더불어 재사용 셀들과 다른 하나의 셀의 화살표 동작, 펼쳐졌을 때 섹션에 점선 뷰가 나타나야 함... 등등 까다로운 부분이 많았습니다.
이를 구현하기 위해서는 테이블 뷰를 구현하기 위해 써주는 각각의 메서드들이 어떤 역할을 하는지 잘 알아야 했고, 그에 따라 조건을 걸어주어 맞는 동작을 하게 하는 것이 무엇보다도 중요했습니다. 그리고 각각의 화면에 그려지는 View, layer의 차이도 조금 더 명확히 알 수 있었던 시간이었습니다.
그러니, 저의 코드에서 TableView에서 조건을 걸어준 부분을 조금 유심하게 봐 주셨으면 좋겠습니다.
그리고 Footer를 TableViewHeaderFooterView로 붙여주기 위한 snp도 공부할 수 있었습니다.
🎫 Screenshot
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-27.at.09.47.43.mp4
🎫 To Reviewers
TableView 구현 조건 위주로 봐주세요!
🎫 Related Issues
진짜 까다로웠다... 드디어 하나 끝냈따...