我正在调查在何处制作/显示错误配置的警报控制器
由于未捕获的异常“ NSGenericException”而终止应用程序, 原因:“您的应用程序提供了一个UIAlertController ()的样式 UP.BVTabBarViewController的UIAlertControllerStyleactionSheet ()。 modalPresentationStyle 具有此样式的UIAlertController的一个是UIModalPresentationPopover。 您必须通过以下方式为此弹出窗口提供位置信息 警报控制器的popoverPresentationController。您必须提供 sourceView和sourceRect或barButtonItem。如果这 当您显示警报控制器时,信息未知,您 可以在UIPopoverPresentationControllerDelegate方法中提供它 -prepareForPopoverPresentation。
天真的,我已经尝试过了:
(lldb) br s -n "-[UIAlertController init]"
Breakpoint 100: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
正确的(工作)方式是什么?