【问题标题】:Use of undeclared type MGSwipeTableCell使用未声明类型 MGSwipeTableCell
【发布时间】:2017-07-02 02:32:48
【问题描述】:

我对 swift 很陌生,但我遇到了一个错误。 我正在尝试使用 pod MGSwipeTableCell https://github.com/MortimerGoro/MGSwipeTableCell 在 pod 文件中安装了 pod 'MGSwipeTableCell'。在文件检查器的 pod 中得到它。

var cell = self.tableView.dequeueReusableCellWithIdentifier(reuseIdentifier) as! MGSwipeTableCell!

给我一​​个错误使用未声明的类型“MGSwipeTableCell” google磁盘上有一个项目https://drive.google.com/file/d/0By_KH6PH75z2OHlXek85YmRpcGc/view 这应该是我错过的一些简单的事情。请帮忙。

【问题讨论】:

    标签: ios swift3 frameworks


    【解决方案1】:

    在你使用它的文件开头添加 import 语句

    import MGSwipeTableCell
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-01
      • 2018-08-03
      • 2017-12-27
      • 2017-02-21
      • 2018-12-28
      • 2015-04-15
      • 2017-07-09
      相关资源
      最近更新 更多