Created
July 15, 2013 11:22
-
-
Save johnmckerrell/5999255 to your computer and use it in GitHub Desktop.
Example of some Objective C I'd like to write
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *params = @{ | |
@"vals" : @{ | |
@"flip" : @"1", | |
@"mirror" : @"0" | |
} | |
}; | |
NSString *flipCommand = @"command.cgi?flip={self.vals.flip}&mirror={self.vals.mirror}" | |
[flipCommand stringByMagicallyApplyingKeyPathsToADictionary:params]; | |
NSLog(@"flipCommand=%@", flipCommand); | |
// Should output: flipCommand=command.cgi?flip=1&mirror=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment