welcom ! Handel home

2014年7月10日 星期四

Oh! Siift ... note

must update to Xcode6 @ iOS

how to intstall xcode6


link this [開發環境安裝與 Hello World]
=> http://www.codedata.com.tw/mobile/swift-tutorial-class-1-xcode-helloworld



let定量變數,存放iPad的UDID識別碼與Type型號資訊

let i:Int = -10
let ui:UInt = 10
let f:Float = 3.14
let d:Double = 3.202928
let b:Bool = true
let s:String = "abc"


let id:String = "0099191919"
let type:String = "iPad mini"

var可變變數,存放iPad的Capacity容量資訊
var capacity:Int = 16

capacity =
32




println(
id)
println(type)
println(capacity)





沒有留言: