'advancedBy' in Swift is unavailable

前端 未结 2 1242
盖世英雄少女心
盖世英雄少女心 2021-01-20 19:56

\"error

I\'m not sure how to resolve the above error messages, I have tried to convert it to index b

2条回答
  •  不思量自难忘°
    2021-01-20 20:43

    In Swift 3, advancedBy() has been renamed to advanced(by: Int).

    Additionally, substringWithRange has been renamed to substring(with: Range).

提交回复
热议问题