NSString(SPNSExtensions) Category Reference
| Declared in | SPNSExtensions.h |
Tasks
-
– fullPathExtensionInterprets the receiver as a path and returns its extension, if any (not including the extension divider). Supports multiple extensions, like ‘file.tar.gz’.
-
– stringByDeletingFullPathExtensionReturns 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. -
– contentScaleFactorExpects 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)contentScaleFactorDiscussion
Expects the string to be a filename/path and returns the scale factor (‘@2x’ -> 2).
Declared In
SPNSExtensions.hfullPathExtension
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)fullPathExtensionDiscussion
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.hstringByAppendingScaleSuffixToFilename:
Creates a string by appending a scale suffix (e.g. @2x) to a filename in front of its extension.
- (instancetype)stringByAppendingScaleSuffixToFilename:(float)scaleDiscussion
Creates a string by appending a scale suffix (e.g. @2x) to a filename in front of its extension.
Declared In
SPNSExtensions.hstringByAppendingSuffixToFilename:
Creates a string by appending a suffix to a filename in front of its extension.
- (instancetype)stringByAppendingSuffixToFilename:(NSString *)suffixDiscussion
Creates a string by appending a suffix to a filename in front of its extension.
Declared In
SPNSExtensions.h