Make a call in Objective C help!
Posted
by Henry D'Andrea
on Stack Overflow
See other posts from Stack Overflow
or by Henry D'Andrea
Published on 2010-05-26T22:20:15Z
Indexed on
2010/05/26
22:21 UTC
Read the original article
Hit count: 202
I need to make a call where it says add call here. Can someone help?
(BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)ntype { NSLog(@"Scheme: %@", request.URL.scheme); if ([request.URL.scheme isEqualToString:@"save"]) { //Add Call here }
return true; }
FROM this code-
(void) save { UIGraphicsBeginImageContext(self.view.frame.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
NSLog(@"TEST"); }
© Stack Overflow or respective owner