Attualmente, Sto usando XCode 8 e sulla linea'advancedBy' non è disponibile in Xcode 8
let range = key.startIndex...key.startIndex.advancedBy(0)
ottengo l'errore:
error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index.
Come posso risolvere questo problema?
Uno screenshot dell'errore è qui sotto:
prega di inserire un codice nella questione nonché lo screenshot. – Paulw11
È necessario utilizzare l'offset dell'indice da http://stackoverflow.com/a/38215613/2303865 –
Vedere https://github.com/apple/swift-evolution/blob/master/proposals/0065-collections-move-indices. md – HAS