//webView播放动画
- (void)webViewPlayAnimation
{
NSString *path = @"http://7xk1w3.com1.z0.glb.clouddn.com/animation1.gif";
webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 190, 240)];
webView.center = self.view.center;
webView.userInteractionEnabled = NO;
webView.backgroundColor = [UIColor clearColor];
[((UIViewController*)self).view addSubview:webView];
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:path]];
[webView loadData:data MIMEType:@"image/gif" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:path]];
}
- (void)webViewPlayAnimation
{
NSString *path = @"http://7xk1w3.com1.z0.glb.clouddn.com/animation1.gif";
webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 190, 240)];
webView.center = self.view.center;
webView.userInteractionEnabled = NO;
webView.backgroundColor = [UIColor clearColor];
[((UIViewController*)self).view addSubview:webView];
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:path]];
[webView loadData:data MIMEType:@"image/gif" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:path]];
}