Probleme avec le formattage d'un NSPredicate

Salut,



j'ai un NSPredicate qui fonctionne quand la chaine est en dur :
<br />
predicate = [NSPredicate predicateWithFormat:@&quot;id_customer == &#39;16-0df525d0-d9c0-d814-79d8-d4efa190a6ef&#39;&quot;];<br />




par contre quand j'utilise deux variable pour le champ et la valeur.


<br />
NSString *keyField = [TiUtils stringValue:[args objectAtIndex:0]];<br />
NSString *value = [TiUtils stringValue:[args objectAtIndex:1]];<br />
NSString * ap = @&quot;&#39;&quot;;<br />
value = [ap stringByAppendingString:value];<br />
value = [value stringByAppendingString:@&quot;&#39;&quot;];<br />
predicate = [NSPredicate predicateWithFormat:@&quot;%@ == %@&quot;,keyField,value];<br />




la ca marche plus avec les memes valeurs....



si quelqu'un a une idee....



Merci

Réponses

Connectez-vous ou Inscrivez-vous pour répondre.