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
- SWIFT
- map
- RxCocoa
- Observable
- 리펙토링
- Clean Code
- tableView
- Human interface guide
- HIG
- Protocol
- collectionview
- 리팩토링
- UITextView
- rxswift
- uiscrollview
- ios
- 리펙터링
- MVVM
- 애니메이션
- 스위프트
- swift documentation
- clean architecture
- swiftUI
- UICollectionView
- Refactoring
- 클린 코드
- combine
- ribs
- Xcode
- uitableview
Archives
- Today
- Total
목록문자열에 이미지 (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cFk54g/btsJe5Dp79k/je4XLruX5d6JEgduV7rKP0/img.png)
문자열에 이미지 넣는 방법NSTextAttachment 사용NSAttributedString에 attachment를 가지고 초기화할 수 있는데, 이 때 attachemnt에 이미지를 넣어서 이 것을 사용하면 텍스트에 붙이기가 가능1. NSTextAttachment에 image, 크기를 입력2. NSAttributedString에 위 attachment를 가지고 초기화3. 위 NSAttributedString을 또 다른 문자열로 구성된 NSAttributedString에 append하면 합치기직접 구현해보기1. NSTextAttachment에 image, 크기를 입력height를 50으로할때 이 비율을 기준으로 width도 정해지게끔 처리let imageAttachment = NSTextAttachmen..
iOS 응용 (swift)
2024. 8. 26. 01:18