Ei kuvausta

IOS7Polyfill.h 476B

12345678910111213141516171819202122232425262728
  1. //
  2. // IOS7Polyfill.h
  3. // RNFetchBlob
  4. //
  5. // Created by Ben Hsieh on 2016/9/6.
  6. // Copyright © 2016年 wkh237.github.io. All rights reserved.
  7. //
  8. #ifndef IOS7Polyfill_h
  9. #define IOS7Polyfill_h
  10. @interface NSString (Contains)
  11. - (BOOL)RNFBContainsString:(NSString*)other;
  12. @end
  13. @implementation NSString (Contains)
  14. - (BOOL)RNFBContainsString:(NSString*)other {
  15. NSRange range = [self rangeOfString:other];
  16. return range.length != 0;
  17. }
  18. @end
  19. #endif /* IOS7Polyfill_h */