Created
August 11, 2010 06:02
-
-
Save crayment/518556 to your computer and use it in GitHub Desktop.
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 *dictionary; | |
NSArray *words = [dictionary allKeys]; | |
NSMutableString *javascript = @"addText("; | |
for (int i=0; i<[words count]; i++) { | |
[javascript appendString:@"%@", [words objectAtIndex:i]]; | |
if(i<([words count]-1)) { | |
[javascript appendString:@", "]; | |
} | |
} | |
[javascript appendString:@");"]; | |
[webView stringByEvaluatingJavaScriptFromString:javascript]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment