Initializer

init(minimumPrice:currencyCode:)

Initializes the object with the specified minimum price information.

Declaration

init(minimumPrice: NSDecimalNumber, currencyCode: String)

Parameters

minimumPrice

The minimum price value. This value is assigned to the minimumPrice property.

currencyCode

The ISO 4217 currency code to apply to the price information. You can get a list of possible currency codes using the isoCurrencyCodes method of NSLocale. For example, the string “USD” corresponds to United States dollars.

Return Value

An initialized price range object or nil if the object could not be created.

Discussion

This method does not assign a value to the maximumPrice property.

See Also

Creating a Price Range Object

init(price: NSDecimalNumber, currencyCode: String)

Initializes the object with the specified price information.

init(firstPrice: NSDecimalNumber, secondPrice: NSDecimalNumber, currencyCode: String)

Initializes the object with the specified range of prices.

init(maximumPrice: NSDecimalNumber, currencyCode: String)

Initializes the object with the specified maximum price information.