Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想搜索 an 中的子字符串NSString,但从右到左 ----- 从左到右NSString搜索。
NSString
我有一个愚蠢的方法,但如果有人有一个聪明的方法,我会很高兴。
使用NSString rangeOfString:options:和传递NSBackwardsSearch作为选项之一。
NSString rangeOfString:options:
NSBackwardsSearch