[已解决]swift代码出错:distance is unavailable call the distanceTo(end) method on the index
crifan 9年前 (2016-04-22) 1835浏览 0评论
代码: let offset = (index: semiRange.endIndex, offset: 1 – distance(position, semiRange.endIndex)) 出错: /Users/crifan/dev/...
crifan 9年前 (2016-04-22) 1835浏览 0评论
代码: let offset = (index: semiRange.endIndex, offset: 1 – distance(position, semiRange.endIndex)) 出错: /Users/crifan/dev/...