Xcode 6.3: Swift String 'characters' property not found -


when copy example apple swift manual code

 character in "dog!🐶".characters {         print(character)     } 

i error message

could not find member characters

what has happened 'characters' property in xcode 6.3 ?

string property characters available in xcode 7 (swift 2.0). delete .characters , work xcode 6.3 (swift 1.2).

for character in "dog!🐶" {     println(character) } 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -