NSString(SPNSExtensions) Category Reference
Declared in | SPNSExtensions.h |
Tasks
-
– fullPathExtension
Interprets the receiver as a path and returns its extension, if any (not including the extension divider). Supports multiple extensions, like ‘file.tar.gz’.
-
– stringByDeletingFullPathExtension
Returns a new string made by deleting the full extension (if any) from the receiver.
-
– stringByAppendingSuffixToFilename:
Creates a string by appending a suffix to a filename in front of its extension.
-
– stringByAppendingScaleSuffixToFilename:
Creates a string by appending a scale suffix (e.g.
@2x
) to a filename in front of its extension. -
– contentScaleFactor
Expects the string to be a filename/path and returns the scale factor (‘@2x’ -> 2).
Instance Methods
contentScaleFactor
Expects the string to be a filename/path and returns the scale factor (‘@2x’ -> 2).
- (float)contentScaleFactor
Discussion
Expects the string to be a filename/path and returns the scale factor (‘@2x’ -> 2).
Declared In
SPNSExtensions.h
fullPathExtension
Interprets the receiver as a path and returns its extension, if any (not including the extension divider). Supports multiple extensions, like ‘file.tar.gz’.
- (instancetype)fullPathExtension
Discussion
Interprets the receiver as a path and returns its extension, if any (not including the extension divider). Supports multiple extensions, like ‘file.tar.gz’.
Declared In
SPNSExtensions.h
stringByAppendingScaleSuffixToFilename:
Creates a string by appending a scale suffix (e.g. @2x
) to a filename in front of its extension.
- (instancetype)stringByAppendingScaleSuffixToFilename:(float)scale
Discussion
Creates a string by appending a scale suffix (e.g. @2x
) to a filename in front of its extension.
Declared In
SPNSExtensions.h
stringByAppendingSuffixToFilename:
Creates a string by appending a suffix to a filename in front of its extension.
- (instancetype)stringByAppendingSuffixToFilename:(NSString *)suffix
Discussion
Creates a string by appending a suffix to a filename in front of its extension.
Declared In
SPNSExtensions.h