본문으로 바로가기



- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

{


NSString *requestURL = [[request URL] absoluteString];


if([requestURL rangeOfString:내 도메인].location == NSNotFound){

        //내 도메인이 포함되지 않으면 아이폰 기본 브라우저로 오픈

        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:requestURL] options:@{}         completionHandler:nil];

        return NO;


}else{

return YES;


}


}