I am using below code
var i = 1 println(i) //result is 1 println(%02i)
but its throwing error
Place holder should like as below code in swift
var i = 1 NSLog("%02d", i)
How to use default values for parameter in function. What will happens when value is not passed for a default parameters.
I want to know how to make cross bridging to use SWIFT in Objective C class
I am facing situation to use objective c class in SWIFT. So, i am looking for any instruction to achieve this
How to declare , set message and show alert in SWIFT.
How to use below code in swift.
[actionBtn addTarget:self action:@selector(myAction:) forControlEvents:UIControlEventTouchUpInside];