Realm 을 사용하기 위해 다음과 같은 모델을 정의했다. class ReviewModel: Object { @objc dynamic var id: Int = 0 @objc dynamic var text: String = "" override static func primaryKey() -> String? { return "id" } } 이렇게 사용하다가 Model 에 Field 를 한개 더 추가한 후, class ReviewModel: Object { @objc dynamic var id: Int = 0 @objc dynamic var text: String = "" @objc dynamic var rates: Double = 0.0 override static func primaryKey() -> S..
button.setTitle("test", for: .normal) button.setImage(UIImage.init(named: "icon"), for: .normal) 로 구성된 버튼이 있다면 button.setTitle("test", for: .normal) button.setImage(UIImage.init(named: "icon"), for: .normal) // top left bottom right 중에 조정할 간격 설정 // 보통 image - title 순으로 배치되므로 // image의 오른쪽 간격을 조정하면 됨 button.imageEdgeInsets = .init(top: 0, left: 0, bottom: 0, right: 0)
// Background func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) // ForeGround func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Vo..
- Total
- Today
- Yesterday
- BBC 가쉽
- Phaser
- 손석희
- git hub
- Node
- IOS
- Android
- Kotlin
- GIT
- 리눅스
- 뉴스룸
- mysql
- 노드
- Swift
- CentOS
- xcode
- 스위프트
- 서버
- C
- php
- node.js
- nodejs
- Asterisk
- C언어
- 안드로이드
- 깃헙
- linux
- 앵커브리핑
- 점유율
- 배열
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |