- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
// open External Links (not beginning with www.playbuzz.org/ in Safari.app
if (
(navigationType == UIWebViewNavigationTypeLinkClicked) &&
( ![[[request URL] absoluteString] hasPrefix:@"http://www.naver.com/"])
) {
[[UIApplication sharedApplication] openURL:request.URL];
return NO;
}
//open Internal links in uiwebview
return YES;
}
'옛날' 카테고리의 다른 글
개발 중 에러 발생시 에러 내용 확인, 해결방법 [Android] (0) | 2015.12.16 |
---|---|
웹뷰 메소드 호출이 안될 때 (android.permission.INTERACT_ACROSS_USERS_FULL) (0) | 2015.12.15 |
액티비티 life cycle [Android] (0) | 2015.12.15 |
캐시 삭제 (0) | 2015.12.15 |
http request (0) | 2015.12.15 |