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 - Exception while importing pymorphy2 -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -