【发布时间】:2020-12-19 14:29:42
【问题描述】:
我在使用 this cocoapod 时遇到问题。
我想为弹出窗口设置 popupHeight,但它显示“无法分配给属性:'popupHeight' 是一个只能获取的属性”...
这是我的代码:
@IBAction func testBtnPressed(_ sender: Any) {
guard let popupVC = storyboard?.instantiateViewController(withIdentifier: "popup") as? BottomPopupViewController else { return }
popupVC.popupHeight = 50.0 //ERROR!!!
popupVC.popupDelegate = self
present(popupVC, animated: true, completion: nil)
}
有人可以帮助我吗?谢谢!
【问题讨论】:
标签: ios swift xcode viewcontroller