سؤال

Hi I'm very new to ios and I was wondering why I wasn't able to filter my results using this:

predicate = [NSPredicate predicateWithFormat:@"(pi.employee.last CONTAINS[c] %@)", searchText];

do inverse relationships need to be set for this predicate to work? In other words do i need a property from employee to to pi and from pi to Fetched Entity for this predicate to work?

thanks in advance

هل كانت مفيدة؟

المحلول

I Figured out the problem. First and Last are reserved words.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top