TIL73 ✨

YaR LabΒ·2023λ…„ 8μ›” 2일
0

TIL✨

λͺ©λ‘ 보기
61/135
post-thumbnail

πŸ—“οΈ23.08.02

localizedError

errorDescription 와 String? 짝ꢁ

gitIgnore μΆ”κ°€ ν•˜κΈ°

https://nochoco-lee.tistory.com/59

typealias = Tuple

typealias RankChangeStatus = (target: String, color: UIColor)

λΆ€λΆ„ λ¬Έμžμ—΄ 색상 λ°”κΎΈκΈ°

NSMutableAttributedString
addAttribute
func addAttribute(_ name: NSAttributedString.Key, value: Any, range: NSRange)

UICollectionViewDelegateFlowLayout

UICollectionViewDelegateFlowLayoutλŠ” UICollectionViewDelegate ν”„λ‘œν† μ½œμ„ ν™•μž₯ν•œ μ„œλΈŒ ν”„λ‘œν† μ½œλ‘œ, 델리게이트 객체가 UICollectionView의 λ ˆμ΄μ•„μ›ƒκ³Ό κ΄€λ ¨ν•˜μ—¬ 좔가적인 μž‘μ—…μ„ μˆ˜ν–‰ν•  수 μžˆλ„λ‘ ν•΄μ€λ‹ˆλ‹€.

UICollectionViewFlowLayout

UICollectionViewFlowLayoutλŠ” UICollectionViewLayout 클래슀λ₯Ό 상속받은 클래슀둜, 미리 μ •μ˜λœ λ ˆμ΄μ•„μ›ƒμ„ μ œκ³΅ν•©λ‹ˆλ‹€.
이 클래슀λ₯Ό μ‚¬μš©ν•˜λ©΄ κ°„λ‹¨ν•˜κ²Œ 기본적인 κ·Έλ¦¬λ“œ ν˜•νƒœμ˜ λ ˆμ΄μ•„μ›ƒμ„ κ΅¬ν˜„ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

struct vs class

https://showcove.medium.com/swift-struct-vs-class-1-68cf9cbf87ca

NSMutableAttributedString(string: text)

addAttribute(_:value:range:)

λ§¨μ•žμ— NSAttributedString.Key κ°€ λ“€μ–΄κ°€λŠ” ν°νŠΈμΈμ§€, 칼라인지, μ€„λ°”κΏˆμΈμ§€ μ„€μ •

0개의 λŒ“κΈ€