When would [UIScreen screens] return an empty array

356 views Asked by At

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.

1

There are 1 answers

1
quellish On

You're not attached to a window server at that point, because of your crash - your app is basically not running.