Swift 4 'substring(from:)' is deprecated: Please use String slicing subscript with a 'partial range from' operator

前端 未结 7 2048
情话喂你
情话喂你 2020-12-30 23:59

i\'ve just converted my little app but i\'ve found this error: \'substring(from:)\' is deprecated: Please use String slicing subscript with a \'partial range from\' operator

7条回答
  •  别那么骄傲
    2020-12-31 00:35

    str[..

    The code above is "partial range from" Look at this How can I use String slicing subscripts in Swift 4?

提交回复
热议问题