iOS10부터 이미지 푸시를 보낼 수 있다.iOS10에서는 앱 실행 중에도 앱내에서 처리 없이 상단 푸시를 볼 수 있다. (단, RemoteNotification 등록시 UNUserNotificationCenter를 사용하였을 경우) 우선 AppDelegate에서 푸시를 등록 해보자.let center = UNUserNotificationCenter.current()center.requestAuthorization(options: [.alert, .sound, .badge]) { (granted, error) in print("granted = \(granted)")}center.delegate = self application.registerForRemoteNotifications() UNUserNot..
개발하다 보면 뷰컨트롤러가 아닌 AppDelegate나 NSObject 클래스에서 UIAlertController를 띄우고 싶을때가 종종 있다. UIAlertController를 사용할려면 뷰컨트롤러에서 present를 해야하고 최상위가 아닌 뷰컨트롤러에서 시도할 경우 아래와 같이 계층 에러가 발생한다.(참고: viewDidLoad에서 바로 다른 뷰컨트롤러를 present를 하게 될 경우도 발생한다. 화면이 다 보여지지 않은 상태에서 다른 뷰컨트롤러를 보여준다는게 말이 안되기 때문이다.) Warning: Attempt to present on whose view is not in the window hierarchy! 그래서 아래와 같이 최상위 뷰컨트롤러를 구하는 클래스 함수를 만들어서 사용하고 있다. ..
- Total
- Today
- Yesterday
- AppIcon
- whose view is not in the window hierarchy
- UIApplication
- Easy APNs Provider
- 앱 아이콘
- iOS10
- UITextFiled
- 이미지 푸시
- wkwebview
- UNUserNotificationCenter
- appDelegate
- UITextFieldTextDidChange
- setAlternateIconName
- NotificationCenter
- Notification Service Extension
- mutable-content
- UNUserNotificationCenterDelegate
- shouldChangeCharactersIn
- httpCookieStore
- presentedViewController
- iOS Keys
- UITextFieldDelegate
- swift3
- ios
- swift
- apns
- WebSiteDataStore
- 인증 키
- Create a New Key
- 리치 푸시
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |