i have a stupid question…sometimes i see developers use the following code…
NSString *newURL = [_parameters objectForKey:@"url"];
when i use this i get error… here what is _parameters and how to declare it??
i can provide more example..
NSLog(@"SaveImage Called");
//google code for turning base64 into uiimage
NSURL *url = [NSURL URLWithString:[self._parameters objectForKey:@"imageData"]];
NSData *imageData = [NSData dataWithContentsOfURL:url];
UIImage *img = [UIImage imageWithData:imageData];
/*
if(img != nil) {
UIImageWriteToSavedPhotosAlbum(img, self, nil, nil);
}
*/
_parametersis a NSDictionary that seems to be defined previously in the code, e.g.What exactly is your question? How is this related to JavaScript (edit: question was tagged as javascript)? You know that the language you use is Objective-C ?