我正在建立一个新的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.
}
}