| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
- RxCocoa
- ios
- UICollectionView
- MVVM
- Xcode
- tableView
- Clean Code
- 리팩토링
- clean architecture
- 애니메이션
- 스위프트
- rxswift
- 리펙토링
- uiscrollview
- Refactoring
- swift documentation
- swiftUI
- HIG
- combine
- map
- 클린 코드
- Human interface guide
- scrollview
- uitableview
- SWIFT
- 클로드코드
- collectionview
- Observable
- Protocol
- UITextView
- Today
- Total
목록isHighlighted (3)
김종권의 iOS 앱 개발 알아가기
UITableViewCell과 UICollectionViewCellUITableViewCell과 UICollectionViewCell은 각각 반복되는 여러 데이터를 화면에 보이는 지점만 렌더링하여(cellForRowAt, cellForItemAt) 효율적으로 뷰를 그릴 수 있는 인터페이스UITableViewCellUICollectionViewCell각 커스텀 셀을 구현할 때 비슷한 구조를 가지고 있음ex) tableViewCell 구현class CustomTableViewCell: UITableViewCell { let titleLabel = UILabel() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String..
UITableViewCell, UICollectionViewCell에서의 highlighted 애니메이션 가장 쉽게 접근하기위해서 Cell에서 highlighted가 트리거 될 때, cell 속성에 배경색이나 이미지를 바꾸는 등을 할 수 있지만 cell은 UIButton과 다르게 highlighted의 값이 true, false가 빠르게 바뀌어, 적용이 안되는 것처럼 보이는 문제가 존재 아래처럼 셀을 탭할 때 highlighted 애니메이션이 안들어간것처럼 보이는 현상 존재 (길게 누르고 있어야 highlighted 확인 가능) // in MyTableViewCell override func setHighlighted(_ highlighted: Bool, animated: Bool) { super.set..
isHighlighted 버튼을 눌렀을 때, isHighlighted = true로 변경되었다가, isHighlighted = false로 다시 변경 * isHighlighted 상태 확인 방법 - UIButton의 isHighlighted 프로퍼티를 override하여 didSet으로 확인 public protocol AnimationButtonDelegate: AnyObject { func didChangeHighlighted(highlighted: Bool) } class AnimationButton: UIButton { weak var delegate: AnimationButtonDelegate? override var isHighlighted: Bool { didSet { self.delegat..