Array types are now written with the brackets around the element type问题的解决方法
2017-06-03 12:51 tlnshuju 阅读(302) 评论(0) 编辑 收藏 举报
在xcode6.1中来编写swift空数组时。出现的的这个问题,依照官方
Swift 教程《The Swift Programming Language》来写
let emptyArray = String[]() 时会提示“Array types are now written with the brackets around the element type”错误,正确的写法应该是
let emptyArray = [String]() 其他类型类似来处理就可以