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 | 29 | 30 | 31 |
Tags
- rxswift
- Archive
- IOS
- Apple
- Notification
- FLUTTER
- Python
- SwiftUI
- Git
- JPA
- 개발자
- Firebase
- window
- error
- appstore
- darkmode
- view
- UIButton
- Session
- iOS16
- 한글
- Xcode
- github
- 웹뷰
- Code
- Realm
- mac
- stack
- Swift
- MacOS
Archives
- Today
- Total
목록TextField (1)
EEYatHo 앱 깎는 이야기
Swift ) AttributedString 에 이미지 넣기 - EEYatHo iOS
줄바꿈을 어떻게 구현해야할지 고려하지 않고 손쉽게 이미지를 텍스트 옆에 넣을 수 있다. attributedString 에 이미지를 넣는 것이다. 구현 ( with extension ) extension NSMutableAttributedString { func appendImage(image: UIImage, bounds: CGRect) { let imageAttachment = NSTextAttachment() imageAttachment.image = image imageAttachment.bounds = bounds self.append(NSAttributedString(attachment: imageAttachment)) } func insertImage(image: UIImage, bounds:..
iOS, Swift/Feature
2022. 10. 11. 14:02