[__NSCFString containsString:]: unrecognized selector sent to instance 0x16f45a80 libc++abi.dylib: terminate_handler unexpectedly threw an exception
//- (BOOL)containsString:(NSString *)str NS_AVAILABLE(10_10, 8_0); iOS8以后才有的方法,如果在 iOS8 一下使用的话会导致系统崩溃。
可以通过 rangeOfString: 一下的方法来替换
NSRange range = [url rangeOfString:LET_FI];
BOOL _flag = (range.length != 0);
//[url containsString:LET_FI] != YES //原代码
ps:
http://stackoverflow.com/questions/26410420/nsstring-containsstring-crashes