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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -