Blog

Blog

Swift 3.0
TopicObjective CSwift 3.0
   
LogNSLog()print()
 

NSString *str = "Hello world"

NSLog("Hello World")

NSLog@(@"this is my first %@", str)

var str = "Hello, playground"

print("Hello World")

print(str)

print("this is my first \(str)")

Constantconstlet
  

let constant = 100

//multiple constant in one line

let x1=12, y1=13

//with annotation

let x:Float = 20.0

let stringConstant: String = "Swift 3.0"