top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to use placeholder in swift

0 votes
471 views

I am using below code

var i = 1
println(i) //result is 1   
println(%02i)

but its throwing error

posted Jul 16, 2014 by Shiva

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Place holder should like as below code in swift

 var i = 1
     NSLog("%02d", i)
answer Jul 17, 2014 by Raju
Similar Questions
+1 vote

How to use default values for parameter in function. What will happens when value is not passed for a default parameters.

0 votes

I want to know how to make cross bridging to use SWIFT in Objective C class

+2 votes

I am facing situation to use objective c class in SWIFT. So, i am looking for any instruction to achieve this

0 votes

How to declare , set message and show alert in SWIFT.

+1 vote

How to use below code in swift.

[actionBtn addTarget:self action:@selector(myAction:) forControlEvents:UIControlEventTouchUpInside];
...