1

I am new to iOS programming with Swift. I have stored a string in the variable stringlength.

Let's say...

var stringlength = "Hello"

How do I split this to an array of characters?

Example: ["H", "e", "l", "l", "o"]

In Java I know that toCharArray() works but what do I do in Swift? I have looked everywhere online.

Thanks in advance.

1
  • worse come to worse you can use a for loop? Commented Sep 29, 2014 at 18:26

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.