求助!
Thread1:EXC_BAD_INSTRUCTION(code=EXC_I386_INVOP,subcode = 0x0 (出现在let cell那一行)
原代码:override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
let cell = tableView.dequeueReusableCellWithIdentifier("LyricCell", forIndexPath: indexPath) as UITableViewCell
let lyrics:PFObject = self.lyricsData.objectAtIndex(indexPath!.row) as PFObject
cell.text = lyrics.objectForKey("SongTitle") as String
// Configure the cell...
return cell
}
。完全不知道错在哪。
Thread1:EXC_BAD_INSTRUCTION(code=EXC_I386_INVOP,subcode = 0x0 (出现在let cell那一行)
原代码:override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
let cell = tableView.dequeueReusableCellWithIdentifier("LyricCell", forIndexPath: indexPath) as UITableViewCell
let lyrics:PFObject = self.lyricsData.objectAtIndex(indexPath!.row) as PFObject
cell.text = lyrics.objectForKey("SongTitle") as String
// Configure the cell...
return cell
}
。完全不知道错在哪。