错误:Array<UIView> is not identical to uint8(swift)

来源:互联网 发布:怎么开通淘宝掌柜播 编辑:程序博客网 时间:2024/05/16 06:22

错误:Array<UIView> is not identical to uint8(swift)

by 伍雪颖

解决:
往数组里添加元素不能用+,要用append,
或者用中括号
backgrounds += [background] 

0 0