Hello everyone!
So I'm new in this area of Objective C..
I'm now working on a new iPhone application,
While I worked on it I found a little problem ..
I have a Text Field, Button and Label.
I need to analyze the sentence that people will put in Text Field,
Once they click the button, the Label will show the last word of the sentence.
I just can not break the sentence,
I know how to make string out of it, it's not a problem,
My problem is to analyze it.. I think I need to use the command -length,
but I don't really knows how..
Hope you will reply soon,
Tal Shani.
NOTE: IT CAN BE ALSO A LONG WORD, its dont have to be sentence.
I need to check if its a long word, if yes, it will copy it into other string,
if its a sentence, I need it to copy only the last word to other string.
So I'm new in this area of Objective C..
I'm now working on a new iPhone application,
While I worked on it I found a little problem ..
I have a Text Field, Button and Label.
I need to analyze the sentence that people will put in Text Field,
Once they click the button, the Label will show the last word of the sentence.
I just can not break the sentence,
I know how to make string out of it, it's not a problem,
My problem is to analyze it.. I think I need to use the command -length,
but I don't really knows how..
Hope you will reply soon,
Tal Shani.
NOTE: IT CAN BE ALSO A LONG WORD, its dont have to be sentence.
I need to check if its a long word, if yes, it will copy it into other string,
if its a sentence, I need it to copy only the last word to other string.