前端区分Android iOS

前端区分Android iOS_第1张图片
WechatIMG17.jpeg

前端区分Android iOS_第2张图片
WechatIMG18.jpeg


  // 2.加载网页
    NSString *indexPath = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];
    NSString *appHtml = [NSString stringWithContentsOfFile:indexPath encoding:NSUTF8StringEncoding error:nil];
    NSURL *baseUrl = [NSURL fileURLWithPath:indexPath];
    [self.webView loadHTMLString:appHtml baseURL:baseUrl];



    
        
            indexcxx
            
    
    
        
    


你可能感兴趣的:(前端区分Android iOS)