0
Hi Friends, I have a small question,
I have a paragraph of string, now I want to delete some words from that para
aaaaaaaaaaaaaaaaa*bbbbbbbbb*aaaaaaaaaaaaaa.
Now, suppose I want to delete the "bbbbbbbb" fromthe above para and I am using the following method
mySpeechText = [[mySpeechText stringByReplacingOccurrencesOfString:strTemp withString:@""] retain];
but this method is replacing the "bbbbbbbb" with blank spaces, ie, " " and I am getting
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa;
and I want aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; without any space. so how can I delete the "bbbbbbbb" rather replacing it. Thanks-
If I am not clear plz let me know.
stringByReplacingOccurrencesOfString對我工作的罰款。我沒有得到任何字符之間的空間.. 你可以用你的完整方法更新問題。 – 2010-11-22 07:07:50
@Anil:謝謝Anil,以上是完整的方法。我簡單地用「」替換了「bbbbbbb」,但是它給了我「 - 」:-)。其奇怪的 – Developer 2010-11-22 10:46:44
我想你是正確地刪除strTemp,但不知何故忽略了一個預先或後續的空間。 – 2010-11-22 18:11:57