Array types are now written with the brackets around the element type

因为网站翻译的时候应该用的beta/beta2,而再beta4中就会出现问题,解决问题方案:

var shopping: String[] = ["Eggs","Milk"];

修改成

var shopping: [String] = ["Eggs","Milk"];

既可,解决问题!

posted @ 2014-08-10 18:10  NSDefaultRunLoopMode  阅读(1359)  评论(0编辑  收藏  举报