iPhone 어플에서 UIWebView 를 사용한 프로그램에서
//@Geunwon,Mo 2010.9.17 : UIWebView 의 Javascript alert을 위한 카테고리.
@interface UIWebView (JavaScriptAlert)
- (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
@end
//@Geunwon,Mo 2010.9.17 : UIWebView 의 Javascript alert을 위한 카테고리.
@implementation UIWebView (JavaScriptAlert)
- (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame {
NSLog(@"javascript alert : %@",message);
UIAlertView* customAlert = [[UIAlertView alloc] initWithTitle:@"Hana Bank" message:message delegate:nil cancelButtonTitle:@"확인" otherButtonTitles:nil];
[customAlert show];
[customAlert autorelease];
}
@end
UIAlertView* customAlert = [[UIAlertView alloc] initWithTitle:nil message:message delegate:nil cancelButtonTitle:@"확인" otherButtonTitles:nil];