Type 'String.Index' does not conform protocol 'IntegerLiteralConvertible'

后端 未结 3 1604
清酒与你
清酒与你 2020-12-06 04:20

With Beta 3 all worked fine, now I get a strange error, and I have no clue how to fix it. Tried all the solutions for similiar problems.

Here is my code:

<         


        
3条回答
  •  甜味超标
    2020-12-06 04:51

    For Swift 2.0

    Using the example above:

    curPart.substringToIndex(curPart.startIndex.advancedBy(1)) 
    

提交回复
热议问题