-
Notifications
You must be signed in to change notification settings - Fork 1
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
π 4μ£Όμ°¨ κ³Όμ #14
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.
νκΊΌλ²μ λ무 λ§μ νμΌμ λ΄μΌλμ λ‘μ§μ μΈ λ¦¬λ·°λ³΄λ¨ λ¬Έλ²μ , μ½λμ μ€μ¬μΌλ‘ κ°λ¨νκ² λ¦¬λ·° λ¨κΉλλ€~ κ³ μνμ΄μ
|
||
$0.isScrollEnabled = true | ||
$0.collectionViewLayout = layout | ||
$0.frame = .init() |
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.
νΉμ μ¬κΈ°μ $0.frame = .init()μ ν μ΄μ λ 무μμΈκ°μ?
$0.isScrollEnabled = true | ||
$0.collectionViewLayout = layout | ||
$0.frame = .init() | ||
$0.translatesAutoresizingMaskIntoConstraints = false |
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.
$0.translatesAutoresizingMaskIntoConstraints = falseλ₯Ό μ μΌλμ§ μ μ μμκΉμ?
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.
Snapkit μΌλ‘ λμ μΈ μ€ν λ μ΄μμμ μ‘κΈ° μνμ¬ false μ²λ¦¬ νμμ΅λλ€!
} | ||
|
||
func configureCell(_ results: Results){ | ||
imageURL = URL(string: "https://image.tmdb.org/t/p/original/" + (results.poster_path ?? "") ) ?? nil |
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.
baseURLμ μ¨κΈ°λκ² μ’κ² μ Έ?
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.
κ·Έλ¦¬κ³ μ΅μ λ μ²λ¦¬λ₯Ό νλ©΄ λμ± λͺ νν λΆκΈ°μ²λ¦¬κ° κ°λ₯ν΄μ§ κ±° κ°μμ. λ§μ½μ imageURLμ nilκ°μ΄ λ€μ΄κ°λ€λ©΄ μ¬μ©μμ μ΄λ ν μλ¬ λ©μΈμ§λ λͺ¨λ₯Έμ± μ΄λ―Έμ§κ° λμ€μ§ μλ νμμ΄ μκΈ°κ² μ£
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.
μν ! μμμ λ§κ³ μ΄ κ³³μμ λ°λ‘ μ μΈν΄μ€ κ±Έ κ·Έλ¬λ€μ© κ°μ¬ν©λλ€ :)
self.backgroundColor = .white | ||
self.addSubviews(cellView) | ||
cellView.do { | ||
$0.backgroundColor = .black | ||
} |
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.
styleμ μ§μ νλ λ©μλ μμμ κ³μΈ΅κ΅¬μ‘°μ κ΄ν λΆλΆμ΄ μλ μ΄μ κ° λμ§ μκΉμ?
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") | ||
} | ||
|
||
override var isSelected: Bool { |
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.
νΉμ μ override ν€μλλ₯Ό μ¬μ©νλμ§ μ μ μμκΉμ?
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.
isSelected λΌλ ν¨μκ° μ΄λ―Έ μ‘΄μ¬νλ ν¨μκΈ° λλ¬Έμ μ¬μ μ νκ³ μΆμ΄μ override λ₯Ό μ¬μ©νμμ΅λλ€!
private func target() { | ||
|
||
} |
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.
μ¬μ©νμ§ μλ λ©μλλ μ μ°λκ² μ’κ²μ£ ?
$0.layer.cornerRadius = 3 | ||
|
||
adTextLabel.do { | ||
let tvingImage = NSTextAttachment(image: UIImage(named: "tvNLogo") ?? UIImage()) |
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.
NSTextAttachment μ΄κ±΄ μ²μλ΄μ κ·Έλ°λ° νΉμ μ΄λ€ 건κ°μ? κΆκΈνλ€μ!
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.
λΌλ²¨μ μ΄λ―Έμ§μ λ¬Έμ₯μ κ°μ΄ ꡬνν μ μλλ‘ λμμ€λ€κ³ νμ¬ μ¬μ©νμλλ° νΉμ λ μ’μ λ°©μμ΄ μμκΉμ?,,? (μ°Έκ³ μ¬μ΄νΈ : https://devddong.tistory.com/3 )
|
||
private init() {} | ||
|
||
func getMovie(completion: @escaping(NetworkResult<Any>) -> Void) { |
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.
@escaping ν€μλλ₯Ό μ μ¬μ©νμ ¨λμ?
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.
@escaping μ ν¨μ λ°μμ μ€νλλ ν΄λ‘μ κΈ° λλ¬Έμ μ¦μ μ€νμ΄ μλ λ€νΈμν¬ μ°κ²° νμ λΉλκΈ°λ‘ μ€νλμ΄μΌ νκΈ°μ λΆμ¬μ£Όμμ΅λλ€ !
4μ£Όμ°¨
4μ£Όμ°¨ κ³Όμ μμλ κΈ°μ‘΄ Tving κ³Όμ μ Alamofire λ₯Ό μ΄μ©νμ¬ μν API λ₯Ό μ°κ²°νμμ΅λλ€.
μ£Όμμ½λ
λΆνμν λ°μ΄ν°μ λ³μλ μμ±μκ³ Decoding νλλ‘ κ΅¬ννμμ΅λλ€.
FirstCollectionView κ° μ€νλ λλ§λ€ λ°μ΄ν°λ₯Ό λΏλ €μ£Όμ΄μΌ νκΈ° λλ¬Έμ FirstCollectionVIew μ SuperVIew μΈ HomeMainView μ init μμ getMovie() ν¨μλ₯Ό μ€ννμμ΅λλ€.
ViewWillAppear λ΄λΆμμ getMovie() λ₯Ό μ€νμν¬ μ μμ§λ§ ViewWillAppear λ UIViewController μμλ§ νΈμΆν μ μκΈ° λλ¬Έμ init μμ ꡬννμμ΅λλ€.
μ€μ΅κ²°κ³Ό
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-17.at.04.41.09.mp4