How to check a last letter of a word like a parser
Dear Friends
I need to check the last letter of a string how Can I do in Objective-C ?
E.G. in Italian
I've a "form" on my Application where to put a word like *CASA*
I wish check the last letter of this word like this:
If(lastLetterOfWord is A) {
do this!
}else{
if(lastLetterOfWord is E) {
do this one!
}
}
MayBe I can put every letters in an array and afther check the last pointer of this array, or I can do a pares of the letters?
Someone can help me ?
|