Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Objective-Cで書かれたアプリをSwift化したときの話

 Objective-Cで書かれたアプリをSwift化したときの話

shibuya.swift #4

kuroyam

June 08, 2016
Tweet

More Decks by kuroyam

Other Decks in Programming

Transcript

  1. 30daysAlbum • ࣸਅڞ༗αʔϏε • iOS൛ϦϦʔε͸2011೥ ( iOS4 ~ 5 )

    • WebαʔϏεͱͯ͠͸2008೥͔Β • 2014೥8݄͔Β๻͕iOS୲౰(1ਓ)
  2. optional bindingͷ΄͏͕Α͍ if let user = user { user.hoge() }

    // ΋͘͠͸ guard let user = user else { return } user.hoge()
  3. ͱΓ͋͑ͣOptionalܕʹ͠ͱ͜… class Book { var id: Int? var title: String?

    var author: String? var createdAt: NSDate? . . . }