-[UIApplicationDelegate applicationWillEnterForeground:] docs are wrong about UIApplicationWillEnterForeground notification

Originator:bejar37
Number:rdar://49817144 Date Originated:4/11/2019
Status:Open Resolved:
Product:UIKit Product Version:iOS 12
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
Docs say "The app also posts a UIApplicationWillEnterForegroundNotification notification shortly before calling this method to give interested objects a chance to respond to the transition."

Steps to Reproduce:
1) Register observer on UIApplicationWillEnterForegroundNotification with NSLog
2) Add NSLog in -[UIApplicationDelegate applicationWillEnterForeground:]
3) See which log is sent to stdout first

Expected Results:
log call from UIApplicationWillEnterForegroundNotification observer happens before the one in applicationWillEnterForeground:

Actual Results:
applicationWillEnterForeground: log happens first

Version/Build:
iOS 12

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!