'[(UIView)]' is not identical to 'UInt8' when using += in Xcode 6 beta 5. Use append method instead?

前端 未结 3 499
独厮守ぢ
独厮守ぢ 2021-01-18 05:35

I was using += to an a UIView to an array and that no longer seems to work. The line

dropsFound += hitView

Gives an error \'[(UIView)]\' is

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 06:12

    adding object in array dropsFound += hitView,in this way, is removed in last release. You can add element in array by using this syntax dropsFound += [hitView] or dropsFound.append(hitView)

提交回复
热议问题