0
使用卡創建自定義內容視圖的最佳方式是什麼?分配我的內容,以便該卡時使用卡創建自定義contentView
fileprivate var contentView: View!
fileprivate func prepareContentView() {
contentView = View()
let button = RaisedButton(title: "Raised Button", titleColor: .white)
button.pulseColor = .white
button.backgroundColor = Color.blue.base
contentView.layout(button)
.width(150)
.height(44)
.center()
}
然後::現在我做這個
card.contentView = contentView
card.contentViewEdgeInsetsPreset = .wideRectangle3
但是內容視圖中顯示不出來。
我該如何解決這個問題?
謝謝!