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

Fix [#94] picker view 관련 ms값 가져오기 구현 #101

Merged
merged 7 commits into from
Jan 17, 2024

Conversation

kim-seonwoo
Copy link
Member

👾 작업 내용

  • UserManager의 값 중에서 불러오는 함수인 get~ 관련 함수를 ~value로 네이밍 수정을 하였습니다.
  • 시간, 분 값을 ms로 치환하는 함수를 구현하였습니다.
  • setDelegate 함수 관련 정리 하였습니다.

🚀 PR Point

  • TimeCalculate 파일의 convertHoursAndMinutesToMilliseconds 함수를 이용하면 쉽게 시간, 분을 ms로 변환할 수 있어요!

📸 스크린샷

구현 내용 스크린샷
화면종류 image

✅ Issue

Resolved #94

@kim-seonwoo kim-seonwoo added 😎선우 선우의 issue 🐞fix 오류 고치는 것 / 수정용 labels Jan 16, 2024
@kim-seonwoo kim-seonwoo added this to the 🚀1차 스프린트🚀 milestone Jan 16, 2024
@kim-seonwoo kim-seonwoo self-assigned this Jan 16, 2024
@kim-seonwoo kim-seonwoo linked an issue Jan 16, 2024 that may be closed by this pull request
@kim-seonwoo kim-seonwoo changed the title Fix [#94] picker view 관렬 ms값 가져오기 구현 Fix [#94] picker view 관련 ms값 가져오기 구현 Jan 16, 2024
Copy link
Member

@Zoe0929 Zoe0929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어요 ~ 🚀🚀🚀🚀

nextButton.updateStatus(isEnabled: true)
totalTime = selectedValue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4. 빈줄 지워주세용 ㅎㅎ

@@ -77,7 +77,7 @@ extension HMHTimePickerView: UIPickerViewDelegate {
self.reloadComponent(component)
isChanged = true
selectedValue = Int(timeList[row]) ?? 0
self.totalTimePickerDelegate?.updateAvailability(selectedValue: selectedValue)
self.totalTimePickerDelegate?.updateAvailability(selectedValue: selectedValue, type: type)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 빈줄

Comment on lines 27 to 29
self.delegate = self
goalTimeView.hourPicker.totalTimePickerDelegate = self
goalTimeView.minPicker.totalTimePickerDelegate = self
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4. setDelgate 함수로 빼는 것은 어떤가요?

Copy link
Contributor

@boyeon0119 boyeon0119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나이스 합니다 선히님

func updateAvailability(selectedValue: Int, type: HMHTimePickerView.TimePickerType) {
if type == .specificTime {
self.specificTime = selectedValue

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2. 줄바꿈 놉

nextButton.updateStatus(isEnabled: true)
let convertedTime = convertHoursAndMinutesToMilliseconds(hours: specificTime, minutes: specificMinute)
SignUpManager.shared.goalTime = convertedTime
print(convertedTime)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3. 프린트 지워주세요

func updateAvailability(selectedValue: Int, type: HMHTimePickerView.TimePickerType) {
if type == .specificTime {
self.specificTime = selectedValue

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2. 줄바꿈 놉

@kim-seonwoo kim-seonwoo merged commit 45c1dfc into develop Jan 17, 2024
@Zoe0929 Zoe0929 deleted the fix/#94-pickerView branch January 19, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞fix 오류 고치는 것 / 수정용 😎선우 선우의 issue
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Fix] 특정앱 이용시간 부분 pickerView 로직 수정
3 participants