The specific reason why keyboard is presented when the grand child(presentedViewController’s presentedViewController) view controller is presented is not found. But when the text of textfield is empty, this doesn’t happen. I set breakpoint on the resignFirstResponder, and I found when the text is empty resignFirstResponder is called when the view controller will disappear and not when the text is not empty.
Therefore I called resignFirstResponder manually when viewWillDisapper
When I return url with query parameters in this method, query parameters get deleted in message app. This bug doesn’t occur in reminders, notes and other 3rd party apps. And it doesn’t occur on iOS 11.4. It also doesn’t occur if you use MFMessageComposeViewController.
I tried encoding, urlComponent, and returning absoluteString. Returning string without placeholder item worked but had same bug sometimes. To fix this issue, we changed the url format from query to path.
Prior to 10.13, KVO would throw an exception if any observers were still registered after an autonotifying object’s -dealloc finished running. Additionally, if all observers were removed, but some were removed from another thread during dealloc, the exception would incorrectly still be thrown. This requirement has been relaxed in 10.13, subject to two conditions:
• The object must be using KVO autonotifying, rather than manually calling -will and -didChangeValueForKey: (i.e. it should not return NO from +automaticallyNotifiesObserversForKey:) • The object must not override the (private) accessors for internal KVO state
If all of these are true, any remaining observers after -dealloc returns will be cleaned up by KVO; this is also somewhat more efficient than repeatedly calling -removeObserver methods.
It says you don’t need to removeObserver before deinit. But this works only from 11.2 and crash occurs in 11.1.
If you set “앗, 이 기기의 App Store 계정은 다른 테스트 ID(test@test.com)에서 이용권 구독 중인 것으로 확인되어요. 나나나” as message of the UIAlertController, in iOS 14.3, title gets truncated as “앗, 이 기기의 App Store 계정은 다른 테스트 ID(test@test.com)에서 이용권 구독 중인 것으로 확인되어…”. In iOS 13.7 and 11.3, the title doesn’t get truncated at all.
When dismiss landscape view controller to portrait view controller, if the portrait view controller<A> is loaded when landscape view controller is on screen, navigation bar of <A> has landscape frame.