swift报错:value of type 'string' has no member 'generator'

前端之家收集整理的这篇文章主要介绍了swift报错:value of type 'string' has no member 'generator'前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

错误value of type 'string' has no member 'generator'

解释:这个是oc中的写法。

比如,像下面这样遍历字符

for i in "swift".Charactor
{
      print(i);
}
原文链接:https://www.f2er.com/swift/324869.html

猜你在找的Swift相关文章