Returns a new map table object which has weak references to the keys and strong references to the values.
SDKs
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
class func weakToStrongObjects() -> NSMap Table<KeyType, ObjectType>
Return Value
A new map table object which has weak references to the keys and strong references to the values.
Discussion
Use of weak-to-strong map tables is not recommended. The strong values for weak keys which get zeroed out continue to be maintained until the map table resizes itself.