lastIndexOf in obj-c?

Posted by Debashis on Stack Overflow See other posts from Stack Overflow or by Debashis
Published on 2010-03-13T21:40:43Z Indexed on 2010/03/13 21:45 UTC
Read the original article Hit count: 453

How would I get the last occurrence of an NSString within another NSString? For example, in "abc def ghi abc def ghi," I want to find the index of the second "abc," not the first. I know I could do this with a bunch of rangeOfStrings, but is there already a function for that?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about string-manipulation