Bogus value for UIPreferredContentSizeCategoryName

Originator:adam
Number:rdar://26056787 Date Originated:03-May-2016 01:52 PM
Status:Closed Resolved:Yes
Product:iOS SDK Product Version:Xcode 7.3, OS X 10.11.4, iOS 9.3
Classification:Other Bug Reproducible:Always
 
This is partially a duplicate of rdar://25894152

Summary:
Running on the iOS 9.3 Simulator. When observing the UIContentSizeCategoryDidChangeNotification notification, changing the preferred content size in the accessibility settings does not call the notification method. The following messaging is displayed on the console:

bogus value for UIPreferredContentSizeCategoryName: (null)

This only happens on the Simulator.

Additionally, the content size does not change even when the app is quit and re-opened. This includes system apps.

Steps to Reproduce:

1) Create a new project using the single view application template
2) In the view controller, add an observer for the UIContentSizeCategoryDidChangeNotification.
3) Run in the iOS 9.3 Simulator
4) Switch to the accessibility settings and change the text size.
5) Switch back to the app
6) Quit and re-open the app
7) Quit and re-open the Simulator
8) Open the app

Expected Results:
The notificationSelector of the observer should be called in the view controller. Content sizes in the app change as implemented.

Actual Results:
The notification method in the view controller is never called. The following message is output on the console:

bogus value for UIPreferredContentSizeCategoryName: (null)

After an app restart, the content size remains the same. After a Simulator restart, the content size change occurs as expected.

Version:
Xcode 7.3, OS X 10.11.4, iOS 9.3

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!