Let says I have this code
//time and speed are strings
marker.snippet = time + speed // 2016/04/14 60kmph
I want them to show in two lines and not one line only Thanks in advance.
Hahaha, "\n" LOL???
"\n" should get parsed as a standard new line.
So result would be this?
marker.snippet = time + "\n" + speed
Just try with
marker.snippet = " \(time) \n \(speed)"
All the best
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With