DDNoticePopView / 公告弹出控件.
Download NoticePopView and try out the included iPhone example apps
- NoticePopView is available on CocoaPods. Just add the following to your project Podfile:
pod 'DDNoticePopView'
- Use by including the following import:
#import <DDNoticePopView.h>
- Drag All files in the DDNoticePopView folder to project
- Use by including the following import:
#import "DDNoticePopView.h"
//加载本地图片或者网络图片
UIImage *img = [UIImage imageNamed:@"t.jpeg"];
[[DDNoticePopView sharedInstance] show:img btnClick:^{
[[DDNoticePopView sharedInstance] hide];
NSLog(@"open");
} closeClick:^{
NSLog(@"close");
}];