Comment faire pour vérifier le dernier char d'un NSString

Je veux poser une question à propos de la NSString * en objective C. puis-je vérifier le dernier char d'un NSString * objet?

Exemple:

NSString* data = @"abcde,";

if(data is end with ',') //I don't know this part
  //do sth

Merci beaucoup.

InformationsquelleAutor Questions | 2010-07-14