UIContentSizeCategoryDidChangeNotification not working on simulator iOS 9.3, does work on device

Viewed 1433

I have an observer for UIContentSizeCategoryDidChangeNotification that gets triggerd when a user changes the font-size under settings -> accessibility.

   NSNotificationCenter.defaultCenter().addObserver(self, selector: "preferredContentSizeChanged:", name: UIContentSizeCategoryDidChangeNotification, object: nil)

I've never experienced any problems with this before, but now i am having problems with it on the iphone simulator iOS 9.3. It works however on a real device with iOS 9.3.

The simulator returns

bogus value for UIPreferredContentSizeCategoryName: (null)

Has anyone else experienced the same problem?

1 Answers
Related