Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Clean Code
- 리펙토링
- 스위프트
- 애니메이션
- swift documentation
- combine
- swiftUI
- UITextView
- map
- 클린 코드
- uiscrollview
- ribs
- SWIFT
- Observable
- Refactoring
- tableView
- HIG
- Protocol
- RxCocoa
- clean architecture
- Xcode
- MVVM
- UICollectionView
- collectionview
- ios
- rxswift
- 리팩토링
- 리펙터링
- Human interface guide
- uitableview
Archives
- Today
- Total
목록CGContext (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UIImage 회전, 이미지 회전 방법 (CGAffineTransform, CGContext, UIGraphicsBeginImageContext, UIGraphicsGetImageFromCurrentImageContext)
CGAffineTransform 수학적인Affine("아핀") 변환의 의미: 점 사이의 상대적 거리 유지, 평행선을 보존하는 변환 translateBy(x:y:): Coordinate를 변경 scaleBy(x:y:): 확대 or 축소 rotate(by:): 회전 code enum AffineType { case translate case scale case rotate } func affineTransfrom(_ type: AffineType) { switch type { case .translate: rectButton.transform = .init(translationX: 50, y: 1.0) rectButton.setTitle("(translationX:50, y:1.0)", for: .norm..
iOS 응용 (swift)
2021. 8. 21. 00:55