一.实现功能
手拉展示广告内容
二.使用方式
1.由于广告内容大小不确定,所以需先初始化广告内容,并添加到父视图上
UIView* contentView = [[UIViewalloc]initWithFrame:CGRectMake(0, -95+64, [UIScreenmainScreen].bounds.size.width,95)];
contentView.backgroundColor= [UIColorredColor];
[self.viewaddSubview:contentView];
2.初始话下拉框,下拉框的frame于内容视图的frame相等,然后将下拉框添加到父视图上
drawDownMenu* drawMenu = [drawDownMenudrawMenuView:contentView];
drawMenu.frame= frame;
[self.viewaddSubview:drawMenu];
3.展示效果如下图
4.详细demo的地址:https://github.com/393698063/drawMenu