Returns a new expression that extracts a value from the variable bindings dictionary for a given key.
SDKs
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
+ (NSExpression *)expressionForVariable:(NSString *)string;
Parameters
string
The key for the variable to extract from the variable bindings dictionary.
Return Value
A new expression that extracts from the variable bindings dictionary the value for the key string
.