首页 > 其他 > 详细

Array types are now written with the brackets around the element type问题的解决方法

时间:2017-06-03 13:42:09      阅读:459      评论:0      收藏: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]() 其他类型类似来处理就可以

Array types are now written with the brackets around the element type问题的解决方法

原文:http://www.cnblogs.com/tlnshuju/p/6937030.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!