I have a problem that I can't resolve.
When subclassing the UITableViewCell and fill the array data, I have something like :
This is my class TrackViewCell
import Foundation
import UIKit
class TrackViewCell : UITableViewCell {
@IBOutlet weak var iconPlayLabel: UILabel!
@IBOutlet weak var nameTrackLabel: UILabel!
}
and how I use it :
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
var cell = tableView.dequeueReusableCellWithIdentifier("TrackViewCell") as TrackViewCell
let track = self.tracks[indexPath.row]
cell.nameTrackLabel.text = track.title
cell.iconPlayLabel.text = "▶️"
return cell
}
and some others revenants screens :
I can also send you the xcode project ( it's not personal, it's a tutorial )
Thanks you in advance all.