在uiwebview里,如果load一个url还没结束就立即load另一个url,那么就会callback didFailLoadWithError method,error code is -999。solution is 在didFailLoadWithError 里添加下列code if ([error code] != NSURLErrorCancelled) {//show er
fun loadAuthPage(){ let urlString = "https://baidu.com" let url = NSURL(string:urlString) let request = NSURLRequest(url:url! as URL) webView.loadRequest(request as URLReque
挺简单不多说的直接代码: //// ViewController.h// JSAndJson//// Created by WildCat on 13-9-8.// Copyright (c) 2013年 wildcat. All rights reserved.//#import <UIKit/UIKit.h>@interface ViewController :