#import "ViewController.h"
#import "UIImageView+WebCache.h"
@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *Image;
@end
@implementation ViewController
-(void)viewDidLoad { [super viewDidLoad];
// [_Image sd_setImageWithURL:[NSURL URLWithString:@"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1514906915990&di=a6a0c8b03c83d6d959f0f82b2e84cb81&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201602%2F11%2F20160211182214_HyxkZ.jpeg"]];
[_Image sd_setImageWithURL:[NSURL URLWithString:@"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1514906915990&di=a6a0c8b03c83d6d959f0f82b2e84cb81&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201602%2F11%2F20160211182214_HyxkZ.jpeg"]placeholderImage:[UIImage imageNamed:@"001.jpg"]]; [self.view addSubview:self.Image]; }
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self dismissViewControllerAnimated:YES completion:^{
}];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end