ios - PFQuery on Array for item starts with String -
i have array of search keywords field in custom object , wanna make search when user enter 2 or 3 characters of of array items example
["cafe" , "food" , "eat"] ["car" , "gas"]
if user entered caf
should return object contains search keyword
[query wherekey:@"keywords" greaterthan:keyword];
returns not relevant data returns 2 rows of car , cafe
!
i tried equalto
[query wherekey:@"keywords" equalto:keyword];
but row should enter whole word
any ideas should query on?
Comments
Post a Comment