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
That changed in the last release. From the beta 5 release notes:
The
+=
operator on arrays only concatenates arrays, it does not append an element. This resolves ambiguity working withAny
,AnyObject
and related types.
So if the left side of +=
is an array, the right now must be as well.
so:
dropsFound.append(hitView)
Or if you really wanted to use +=
you could probably do:
dropsFound += [hitView]
But that would be a little silly. Use append
like the error message suggests.