lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

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

Open openradar-mirror opened 5 years ago

openradar-mirror commented 5 years ago

Description

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:

- Product Version: iOS 12 Created: 2019-04-11T17:17:07.214653 Originated: 2019-04-11T00:00:00 Open Radar Link: http://www.openradar.me/49817144