I'm seeing odd behavior from [UIScreen screens]
in iOS 5.0.1 in reports we log to Flurry on crashes. There are times when [UIScreen screens]
will return an empty array. Our app implements support for external accessories through the EAAccessory framework. This behavior is totally unexpected, since even Apple's documentation says that the array returned from that method will always contain at least one entry.
When would [UIScreen screens] return an empty array
329 views Asked by David Potter At
1
You're not attached to a window server at that point, because of your crash - your app is basically not running.