Initializerswift 6.0.3Foundation
init(coder:)
required init?(coder: NSCoder)
required init?(coder: NSCoder)
s10Foundation15LengthFormatterC5coderACSgAA7NSCoderC_tcfc
What are these?4TZNH
import Foundation
class LengthFormatter
class NSCoder
The NSCoder
abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSKeyedArchiver
and NSKeyedUnarchiver
. Concrete subclasses of NSCoder
are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
required init?(coder: NSCoder)
override init()
var isForPersonHeightUse: Bool
var numberFormatter: NumberFormatter!
var unitStyle: Formatter.UnitStyle
func string(fromMeters numberInMeters: Double) -> String
func string(fromValue value: Double, unit: LengthFormatter.Unit) -> String
func unitString(fromMeters numberInMeters: Double, usedUnit unitp: UnsafeMutablePointer<LengthFormatter.Unit>?) -> String
func unitString(fromValue value: Double, unit: LengthFormatter.Unit) -> String
enum Unit