FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSNumberFormatter(Shortcuts) Category Reference

Common shortcuts. More...

#import <NSNumberFormatter.h>

Class Methods

(NSNumberFormatter *) + formatter
 Creates and returns default formatter. More...
 

Properties

Property shortcut for legacy compilers
NSNumberFormatterStyle numberStyle
 Property shortcut for old compilers. More...
 
BOOL generatesDecimalNumbers
 Property shortcut for old compilers. More...
 
NSLocale * locale
 Property shortcut for old compilers. More...
 

Number style

(NSNumberFormatter *) + formatterWithNumberStyle:
 Creates and returns with number style. More...
 
(NSString *) + formattedStringByDecimalStyleForNumber:
 Quick decimal formatting for NSNumber. More...
 
(NSString *) + formattedStringByDecimalStyleForInteger:
 Quick decimal formatting for NSInteger. More...
 
(instancetype) - initWithNumberStyle:
 Initialize with number style. More...
 

Detailed Description

Common shortcuts.

Method Documentation

+ (NSString *) formattedStringByDecimalStyleForInteger: (NSInteger)  integer

Quick decimal formatting for NSInteger.

See also
+ formattedStringByDecimalStyleForNumber:
+ (NSString *) formattedStringByDecimalStyleForNumber: (NSNumber *)  number

Quick decimal formatting for NSNumber.

See also
NSNumberFormatterDecimalStyle
+ (NSNumberFormatter *) formatter

Creates and returns default formatter.

+ (NSNumberFormatter *) formatterWithNumberStyle: (NSNumberFormatterStyle)  style

Creates and returns with number style.

See also
- initWithNumberStyle:
- (instancetype) initWithNumberStyle: (NSNumberFormatterStyle)  style

Initialize with number style.

See also
setNumberStyle:

Property Documentation

- (BOOL) generatesDecimalNumbers
readwriteatomicassign

Property shortcut for old compilers.

- (NSLocale*) locale
readwriteatomicassign

Property shortcut for old compilers.

- (NSNumberFormatterStyle) numberStyle
readwriteatomicassign

Property shortcut for old compilers.


The documentation for this category was generated from the following file: