我有简单的评分应用程序,我有;
@IBInspectable var commingId: Int
{
get
{
return self.commingId;
}
set
{
refreshStars()
}
}
func starClicked(sender:UIButton){
if(self.canEdit){
rating = sender.tag;
if(self.delegate != nil){
self.delegate.starRateEdited(Double(rating))
}
self.refreshStars()
print("Selected \(sender.tag) - commingId \(self.commingId)")
}
}
代码。当我试图得到回报时self.commingId
给了我;
EXC_BAD_ACCESS(code=2,address=0x7fff571egff8) 错误
我怎样才能commingId
进去?