代码:
for i in 0..<bufferLen { if buffer[i] == CRLFBytes[k] { k++ |
for var sectionIdx = contactSectionItemList.count – 1; sectionIdx >= 0 ; –sectionIdx { |
警告:
‘++’ is deprecated: it will be removed in Swift 3
‘–‘ is deprecated: it will be removed in Swift 3
根据提示去:
改为:
if buffer[i] == CRLFBytes[k] { k += 1 |
for var sectionIdx = contactSectionItemList.count – 1; sectionIdx >= 0 ; sectionIdx -= 1 { |
即可。
对于++放在变量后面的特殊情况,改为:
//return (String(self.arrayIndex++), JSON(o)) let curArrIdx = self.arrayIndex self.arrayIndex += 1 return (String(curArrIdx), JSON(o)) |
即可。
转载请注明:在路上 » 【已解决】’++’ ‘–‘ is deprecated: it will be removed in Swift 3