How to use “distanceTo”, “advancedBy” to handle String in Xcode7 beta6

后端 未结 2 1820
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 20:17

I have an extension on String, it works fine on Xcode7 beta5. However, I upgraded to beta 6 yesterday. It seems Swift syntax has some changes. There are some errors while co

相关标签:
2条回答
  • 2020-12-03 20:27

    What's happened is that the global functions distance and advance have been replaced by instance methods distanceTo and advancedBy.

    0 讨论(0)
  • 2020-12-03 20:38

    OK, I figure out how to use these.

    0 讨论(0)
提交回复
热议问题