Closed datomnurdin closed 9 years ago
You're using UITableViewCell instead of TDBadgedCell
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> TDBadgedCell {
let cell = tableView.dequeueReusableCellWithIdentifier("BuzzCell", forIndexPath: indexPath) as! TDBadgedCell //1
cell.textLabel?.text = buzzs[indexPath.row]
cell.badgeString = "130990"; //error message here
return cell
}
But I got another error message
/Users/MNurdin/Documents/iOS/xxxxx/Controllers/ViewController.swift:12:1: Type 'ViewController' does not conform to protocol 'UITableViewDataSource'
My code
import UIKit
import TDBadgedCell
class BuzzChannelDetailViewController: UIViewController, UITableViewDelegate, UITableViewDataSource{
/* -- */
}
My project using Swift. The problem is I got this error message when I trying to set badgeString.
Error message
My code
I already import the library via bridging header. Please advice. Thank you.