【发布时间】:2015-12-06 17:52:13
【问题描述】:
如何在 cellForRowAtIndexPath 中将 UIButton 视为 UILabel,我想在 cellForRowAtIndexPath 中将其称为 UILabel。
我得到这个错误:
无法将 String 类型的值赋给 UIButton 类型
我正在使用 PFQueryTableViewController。
cell.cityButton = object?.objectForKey("City") as? String
cell.locationLabel.text = object?.objectForKey("eventLocation") as? String
【问题讨论】:
标签: ios swift uitableview parse-platform uibutton