Instance Method インスタンスメソッド

encode(_:forKey:)

Encodes a 32-bit integer value and associates it with the string key. 32ビット整数値をエンコードして、それを文字列キーと結びつけます。

Declaration 宣言

func encode(_ value: Int32, 
     forKey key: String)

Discussion 議論

Subclasses must override this method if they perform keyed coding. サブクラスは、それらがキー付きコーディングを実行するならば、このメソッドをオーバーライドする必要があります。

See Also 参照

Encoding General Data 一般的なデータを符号化する

Related Documentation 関連文書