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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -