美文网首页iOS Developer程序员
一句话搞定弹出视图 popMenu

一句话搞定弹出视图 popMenu

作者: Lsx_f | 来源:发表于2017-03-13 13:43 被阅读0次

一个简单好用的弹出视图 LSXPopMenu

gitHub地址

效果图

LSXPopMenu.gif

使用说明:

#import "LSXPopMenu.h"
@interface ViewController ()<LSXPopMenuDelegate>
//创建方式一
/****根据传入的View  弹出视图****/
[LSXPopMenu showRelyOnView:sender titles:@[@"可以点么",@"好的"]  icons:@[@"yuezhifu",@"blood_weixin"] menuWidth:120 isShowTriangle:YES delegate:self];

//创建方式二
/****制定 Point 弹出视图****/
[LSXPopMenu showAtPoint:CGPointMake(self.view.centerX, self.view.centerY) titles:@[@"可以点么",@"好的"] icons:@[@"yuezhifu",@"blood_weixin"] menuWidth:200 isShowTriangle:NO delegate:self];

//创建方式三
/****制定 Point 弹出视图****/
LSXPopMenu * menu=[[LSXPopMenu alloc]initWithTitles:@[@"可以点么",@"好的"] icons:@[@"yuezhifu",@"blood_weixin"] menuWidth:200 delegate:self];
 menu.isShowTriangle=YES;//是否显示三角
 menu.cornerRadius=0;//圆角半径
 menu.isShowShadow=YES;//是否显示阴影
 //menu.type=LSXPopMenuTypeDark;//显示
 menu.textColor=[UIColor redColor];
 menu.fontSize=25;
 [menu showRelyOnView:sender];

gitHub地址 欢迎下载,给个star吧!

相关文章

网友评论

    本文标题:一句话搞定弹出视图 popMenu

    本文链接:https://www.haomeiwen.com/subject/joufnttx.html