Good all!

I study lectures from Stanford University on the website bestkora.com

Translation from English. In Russian in lecture xcode 7, and I have xcode 6.2 (OS X 10.9) the problem arose with the variable

I declared UILabel as an outlet and called it display

@IBOutlet weak var display: UILabel! var displayValue: Double { get { return Double(display.text!)! } set { display.text = "\(newValue)" } } 

all as specified in the lecture, but gives an error

 Could not find an overload for 'init' that accepts the supplied arguments 

what's wrong, don't understand

Lecture here https://drive.google.com/file/d/0B0jZOSo2e4NmOXFjc29BSXlHWlk/view

    1 answer 1

    Option 1. Replace

     return Double(display.text!)! 

    on

     return NSNumberFormatter().numberFromString(display.text!)!.doubleValue 

    Option 2. Update macOS and Xcode

    • for updating, you need ssd while there is no possibility to buy ssd and hdd is not a working comp with MacOS - jcmax