I am learning Stanford iOS 8 course in Xcode7, and in the second class I got a problem.
I follow the video and write the following code
But I got an error
Cannot convert value of type 'String' to expected argument type 'NSNumberFOrmatter'
and after searching Google and trying many ways, I change the code to this
let formatter = NSNumberFormatter()
It wroks !
So, my question is what caused this ?