美文网首页
项目出现过的一些错误

项目出现过的一些错误

作者: Amok校长 | 来源:发表于2017-04-26 14:25 被阅读0次

1. 报错一:

Your application has presented a UIAlertController of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller’s popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.

当在iPad上运行上面这段代码的时候,如果没有设置如下两个属性 alertController.popoverPresentationController.sourceView

alertController.popoverPresentationController.sourceRect

会导致程序crash。然而在iPhone上没有这样的问题。

相关文章

  • 项目出现过的一些错误

    1. 报错一: Your application has presented a UIAlertControlle...

  • 关于Undefined symbols for architec

    有时候在build项目的时候会出现这样的一个错误: 项目中出现过这样的一个错误,造成这个错误的原因有好几种,今天遇...

  • cocoapods使用中部分错误

    今天在使用cocoapods管理自己的swift项目时,出现了一些错误,项目编译时出现 在终端执行pod inst...

  • iOS 中处理的编译链接错误

    在项目运行时,可能会出现一些编译错误. -L 错误 如: directory not found for opti...

  • 项目出现错误 方案

    1、 pod 版本没有做限制解决方案: 使用命令、、、flutter pub upgrade、、、 2、运行安卓失...

  • laravel 自定义错误页面403、404、500等

    项目上线以后,功能优化迭代,过程中会出现一些错误,导致项目无法正常运行,报错需要优化展示首先找到Laravel错误...

  • iOS入门常见错误

    总结一些在iOS入门的时候出现过的一些错误,总结下来,以后出现相同的错误的时候可以回顾以前的解决方法 报错信息: ...

  • 【转】前端错误日志收集方案

    前言 公司的项目上线出现问题后难以定位错误,研究过现存的错误监控方案,受限于特殊条件只能定制自己的错误收集方案。 ...

  • error: The following untracked w

    在使用SourceTree管理项目时,向远端推送本地代码时,出现如下错误提示: 通过错误提示可知,是由于一些unt...

  • Xcode项目拷贝出现错误

    有时候拷贝的Xcode工程执行时报错: -bash: ./install.sh: /bin/bash: bad i...

网友评论

      本文标题:项目出现过的一些错误

      本文链接:https://www.haomeiwen.com/subject/lzmizttx.html