Declared in SPNSExtensions.h

Overview

Sparrow extensions for the NSString class.

Tasks

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

stringByDeletingFullPathExtension

Returns a new string made by deleting the full extension (if any) from the receiver.

- (instancetype)stringByDeletingFullPathExtension

Discussion

Returns a new string made by deleting the full extension (if any) from the receiver.

Declared In

SPNSExtensions.h