gokhancokkececi gokhancokkececi - 1 year ago 120
Swift Question

How do you get the last character of a string without using array on swift?

I got a string

let stringPlusString = TextBoxCal.text

I want to get last character of
i do not want to use array on java exist
but i can not find like this keyword on swift

Answer Source

For Swift 2.x and Swift 3:

let str = "hello world
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download