Build & run on iPad Simulator (I used iPad Pro 10.5" @ iOS 12.2)
Once the app is running tap button in lower right corner
(Popover appears)
Rotate simulator
App stops due to ObjCRuntime exception being thrown
Expected Behaviour
Exception is not thrown
Actual Behaviour
Exception thrown:
ObjCRuntime.RuntimeException: Unable to marshal the out/ref parameter #3 whose managed type is 'UIKit.UIView&' to Objective-C.
Additional information:
Selector: popoverPresentationController:willRepositionPopoverToRect:inView:
Method: PopoverTest.Interface.MainController:WillRepositionPopover (UIKit.UIPopoverPresentationController,CoreGraphics.CGRect&,UIKit.UIView&)
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at PopoverTest.Application.Main (System.String[] args) [0x00001] in /Users/csnazell/Development/Linn/PopoverTest/PopoverTest/PopoverTest/Main.cs:12
Steps to Reproduce
Expected Behaviour
Exception is not thrown
Actual Behaviour
Exception thrown:
Environment
Build Logs
Example Project (If Possible)
PopoverTest.zip