NSString+KeyPaths.h 355 B

1234567891011121314151617
  1. //
  2. // NSString+KeyPaths.h
  3. // TBTweakViewController
  4. //
  5. // Created by Tanner on 3/26/17.
  6. // Copyright © 2017 Tanner Bennett. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSString (KeyPaths)
  10. - (NSString *)stringByRemovingLastKeyPathComponent;
  11. - (NSString *)stringByReplacingLastKeyPathComponent:(NSString *)replacement;
  12. @end