-
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
심화테이블 뷰 구현 완료 & 음악 검색앱 구현 #19
base: main
Are you sure you want to change the base?
Conversation
|
||
import UIKit | ||
|
||
class AddMemberViewController: UIViewController{ |
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.
응응 ! 수정할게!
extension UITableViewCell { | ||
static var identifier: String { | ||
return String(describing: self) | ||
} | ||
} |
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 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.
아 나는 같은 Cell 파일에 있어야 하는줄 알았다..!! 그럼 컨트롤러 쪽으로 옮길게!
let image = UIImage(data: data) | ||
musicImage.image = image |
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.
지금 Task 안에서 비동기로 작동하는 코드 안에서 ui 수정을 할 때에는 메인 쓰레드에서 적용하는 게 안전해! 메인 쓰레드와 글로벌 쓰레드의 차이점, DispatchQueue 키워드 참고해서 알아봐도 좋을 것 같아!
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.
DispatchQueue를 자세히 못봤던 것 같아! ui수정은 메인쓰레드레서 해야하니까 Dispatchqueue.main.async를 사용하는게 맞는거지?
수정해서 올릴게!
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.
👍
close #15
close #20
구현 완료