Wednesday 6 September 2017

Format float value with 2 decimal places

let twoDecimalPlaces = String(format: "%.2f", 10.426123)

1 comment:

  1. The information which you have provided is very good. It is very useful who is looking for ios app development online training Bangalore

    ReplyDelete

Remove bottom line in navigation bar

navigationController ?. navigationBar . setBackgroundImage ( UIImage (), for: . any , barMetrics: . default )          navigat...