项目介绍:
对动画的一些学习,后期不断更新中,欢迎交流
https://github.com/kingsic/SGAnimation.git
效果图
跑马灯效果创建:
SGHorseRaceLampView *HRLView = [[SGHorseRaceLampView alloc] init];
HRLView.frame = CGRectMake(0, 150, self.view.frame.size.width, 30);
HRLView.title = @"使用 UIView 动画进行封装的跑马灯效果,Block 进行事件点击处理";
HRLView.imageNage = @"horn_icon";
[self.view addSubview:HRLView];
HRLView.selectedBlock = ^{
NSLog(@"被点击了");
};
活动弹窗创建
SGActivePopupsView *APView = [[SGActivePopupsView alloc] init];
APView.imageName = [UIImage imageNamed:@"activePopus_imageView_icon"];
APView.selectedImageBlock = ^{
NSLog(@"图片被点击了");
};
[APView SG_show];
Demo下载地址