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

앱내결제 구현 후 프로덕트에 이미지를 추가하는데, 배경이 투명한 png를 그대로 사용했더니 위와같은 문제가 발생 PNG 파일에서, 알파 채널 또는 투명도 제거하기 1. 미리보기 > 파일 > 내보내기 2. PNG포맷에서 알파 체크해제 후 저장 or JPEG 포맷으로 저장
NavigationBar에 버튼을 넣기위해서, UIBarButtonItem 같은 버튼을 사용할 때, tintColor가 활성화되어 이미지 색이 자동으로 바뀌곤 한다. 해당 색은 NavigationBar.tintColor 혹은 UIBarButtonItem.tintColor를 조절하여 컨트롤 할 수 있다. 하지만 텍스트나 이미지에 tintColor를 적용하고 싶지 않을 때 도 있다. 그럴 때는, 텍스트에 attribute를 입히거나, let button = UIBarButtonItem(title: "테스트텍스트", style: .done, target: self, action: #selector(testFunc)) button.setTitleTextAttributes([.foregroundColor : UI..
UI 컴포넌트를 만들 때 너무나도 당연히, UIView를 서브클래싱하고, addSubView로 써왔다. 그런데 왠걸? UIViewContoller를 서브클래싱해서 만들어놓고, addChild 하는 코드를 보았다. 그래서 사용법을 따져보니, UIView 서브클래싱 삽입 pView.addSubView(cView) 제거 cView.removeFromSuperview() UIViewContoller 서브클래싱 삽입 pVC.addChild(cVC) pVC.view.addSubView(cVC.view) cVC.didMove(toPatent: pVC) 삭제 cVC.willMove(toParent: nil) cVC.view.removeFromSuperview() cVC.removeFromParent() 와... 비효율..