UIViewController.popoverPresentationController return nil

Originator:b123400
Number:rdar://17942457 Date Originated:07-Aug-2014 04:01 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8
Classification: Reproducible:Yes
 
Summary:
var popoverPresentationController: UIPopoverPresentationController! is not an optional, but it can return nil according to the documentation.

Steps to Reproduce:
Access popoverPresentationController even if the view controller is not in a popover, no warning or error is shown, but will crash during runtime.

Expected Results:
Expect type to be UIPopoverPresentationController?

Actual Results:
The type is UIPopoverPresentationController!

Version:
iOS8 beta 5

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!