Hi Friends,
I was in a search of a function that would give the number of occurrences of a character or a string in another string and finally I landed in the following solution. If you have any other way to achieve it, please share it.
+ (NSInteger)occurrencesOf:(NSString *)str InString:(NSString *)mainString
{
return [[mainString componentsSeparatedByString:str] count];
}
Thank you.
25+ Inspirational Cynthia Myers Gallery / AJ Benza - The Adam Carolla Show
- A Free Daily Comedy : An image of cynthia myers available as a poster,
photograph or aluminum metal print.
-
36+ great pictures of cynthia myers. The obit patrol cynthia myers from
1.bp.blogspot.com. You can leave condolences in the guest book, buy
sympathy flo...
2 years ago
No comments:
Post a Comment