Skip to content

BestKora/Calculator-cs193p-2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cтэнфордский курс CS193P 2015 "Разработка iOS 8 приложений с Swift". Код Лекции 2.

Лектор работал с Xcode 6.2 iOS 8.2 Swift 1.1

Для Swift 1.2 при появлении ошибки

 Method 'perform' with Objective-C selector 'perform: ' conflicts with previous declaration with the same Objective-C selector

Достаточно сделать один (или оба) из этих методов private

 class ViewController: UIViewController{
  
  @IBOutlet weak var display: UILabel!

  .  .  .  .  .  .  .  .  .
  func performOperation (operation: Double -> Double){...
  .  .  .  .  .  .  .  .  .
  private func performOperation (operation: (Double, Double) -> Double ){
 

и проблема «уйдет».

Код на отдельных этапах Лекции 2 доступен через Tags.

Лекция 2 первая часть-> Lecture2/1

Лекция 2 вторая часть без Autolayout-> Lecture2/2

Лекция 2 вторая часть c Autolayout-> Lecture2/3Swift1_2

Лекция 2 вторая часть c Autolayout представлена с исправленным кодом для Swift 1.2

About

Лекции 2 Calculator Stanford cs193p 2015

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages