代码如下:

NSRange range = [[string name] rangeOfString: otherString options: NSCaseInsensitiveSearch];