I am trying to convert a double, value
to a string. This string will be set as the text of a Cocoa Touch UI element, that only accepts strings (I can't use the double as-is)
let value = example double value (my actual code is not this)
UIElementBeingSet.text = NSString(value)
When I try the above code, I get "Use of unresolved identifier 'value'.
Through my research, I have found questions like this, which seem to be asking similar things, but that question and similar ones involve limiting precision, don't involve UI elememts (which I am asking about), and are just overall not the answers I need.
Sorry for a basic question, and thanks!