1

I am using Kinvey Kit in one of my apps. While using query +(KCSQuery *)queryOnField:(NSString *)field withExactMatchForValue:(NSObject *)value, I try matching record with KCSUser userId. It does not match by using self.userId but if I do @"53a7ded611324c8002041603", it matches immediately. self.userId is same as 53a7ded611324c8002041603 except its type is NSCFString.

Its driving me nuts. Is there anyway to change NSCFString to NSString.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
Saira
  • 65
  • 5
  • 1
    An NSCFString **is** an NSString. Are you using `==` to compare them? – borrrden Jun 30 '14 at 07:15
  • No, I am using it this way KCSQuery *findInvited = [KCSQuery queryOnField:@"invited_id" withExactMatchForValue:self.userId]; – Saira Jun 30 '14 at 08:35

0 Answers0