Decodes a series of potentially different Objective-C types.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
value is a single C string containing any number of type codes. The variable arguments to this method consist of one or more pointer arguments, each of which specifies the buffer in which to place a single decoded value. For each type code in
value, you must specify a corresponding pointer argument whose buffer is large enough to hold the decoded value.
This method matches an
encode message used during encoding.
For information on creating Objective-C type codes suitable for
value, see Type Encodings.
You should not use this method to decode Objective-C objects. See
decode for more details.