Separating a string in swift -


var password : string = "f36fjueea5lo903" 

i need separte character character.

something this.

var 1character : string = "f" var 2character : string = "3" var 3character : string = "6" 

. . .

pd: novice

you can with:

let characters = array(password) 

with have array of characters in string. can assign other variables if want to.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -