ios - String not convertible to [AnyObject] -


i have string declared var searchstring = ""

i trying parse query shown below: query?.wherekey("username", containedin: searchstring)

what issue?

this in xcode 6.3 updated , swift 1.2.

enter image description here

the function expects array of anyobjects, supply string. wrap string in array...

query?.wherekey("username", containedin: [searchstring]) 

Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

python - Exception while importing pymorphy2 -