Swift Panda库给出错误“使用未解析的标识符'imageView';您是说'UIImageView'吗?”

时间:2019-06-09 07:17:10

标签: swift

我正在建立一个新的Xcode项目,并使用熊猫可可足(http://cocoapods.org/pods/Panda)。甚至尝试第一个示例代码也会导致错误:

Use of unresolved identifier 'imageView'; did you mean 'UIImageView'?

import UIKit
import Panda

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.pd.add(
            imageView.pd.image("testimage"),
            label.pd.text("Logo").textColor(.red).font(size: 20),
            button.pd.title("Go").action(buttonTapped)
        )

        // Do any additional setup after loading the view.
    }


}

0 个答案:

没有答案