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 |
Tags
- Code
- 이미지
- appstore
- github
- FLUTTER
- Xcode
- rxswift
- JPA
- Session
- darkmode
- window
- 웹뷰
- 개발자
- geofencing
- SwiftUI
- Swift
- Notification
- Firebase
- iOS16
- IOS
- error
- mac
- MacOS
- UIButton
- Apple
- view
- Git
- Realm
- 한글
- Archive
Archives
- Today
- Total
목록JPG (2)
EEYatHo 앱 깎는 이야기

앱내결제 구현 후 프로덕트에 이미지를 추가하는데, 배경이 투명한 png를 그대로 사용했더니 위와같은 문제가 발생 PNG 파일에서, 알파 채널 또는 투명도 제거하기 1. 미리보기 > 파일 > 내보내기 2. PNG포맷에서 알파 체크해제 후 저장 or JPEG 포맷으로 저장
iOS, Swift/Tip, Bug, Swift Error
2022. 5. 31. 08:54
Swift ) Request image/png 보내기 - EEYatHo iOS
1. Content-Type image/png로 그냥 보내기 // 리퀘 생성 var request = URLRequest(url: URL(string: requestUrl)!, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 7) request.httpMethod = "POST" // 리퀘 헤드 request.setValue("image/png", forHTTPHeaderField: "Content-Type") // 리퀘 바디 request.httpBody = image.pngData()! 2. multipart/form-data 이용하기 ( 바디에 다른 Content-Type들 담기 가능 ) // 리퀘 생성 var request = URLRequest(..
iOS, Swift
2021. 12. 10. 14:07