I am gathering an NSNumber
from my plist and I want to print that in a String
:
let tijd = String(self.sortedHighscores[indexPath.row]["Tijd"]!)
cell.detailTextLabel?.text = "\(tijd) seconden"
But in Simulator I'm seeing printed: Optional(120) seconden
for example.
How do I solve this? I've tried unwrapping tijd
, but that would result in errors in the compiler telling me to delete the !
.