if([url rangeOfString:@"http://"].location == NSNotFound)
url = [url stringByAppendingFormat:@"http://%@",url];
if([url rangeOfString:@"http://"].location == NSNotFound)
url = [url stringByAppendingFormat:@"http://%@",url];
转载于:https://my.oschina.net/751547752/blog/324807