【发布时间】:2018-02-11 06:15:59
【问题描述】:
我创建了一个UIViewController(TestViewController.swift),我在Test.xcodeproj 中创建了它,并希望在另一个abc.xcodeproj 中访问这个TestViewController.swift 及其方法。
例子-
import Test
class abcViewController: TestViewController {
}
我在项目的 Pod 文件中添加了 abc.xcodeproj 和 Test.xcodeproj。
但我无法继承abcViewController 中的TestViewController。我想使用 LEGO 模式创建我的项目。
请提出正确的方法。
【问题讨论】:
标签: ios swift3 uiviewcontroller cocoapods