气泡型弹出菜单效果
来源:互联网 发布:java方法内部类 编辑:程序博客网 时间:2024/05/08 14:07
该源码项目是一个气泡型弹出菜单案例,源码LIVBubbleMenu-iOS,LIVBubbleMenu-iOS是一个能够高度自定义的气泡型弹出菜单。能够自定义其中的图片,半径,数量,甚至是动画速度,回弹程度,透明度等等多达十多种的属性。支持点击的delegate方法。效果图:
使用方法:
支持CocoaPods:
pod 'LIVBubbleMenu'
或者复制LIVBubbleMenu文件夹到项目中使用。
#import "LIVBubbleMenu.h"
示例代码:
- (IBAction)moodButtonTapped {
_bubbleMenu = [[LIVBubbleMenu alloc] initWithPoint:self.moodButton.center radius:150 menuItems:_images inView:self.view];
_bubbleMenu.delegate = self;
_bubbleMenu.easyButtons = NO;
[_bubbleMenu show];
}
- (IBAction)partialButtonTapped:(id)sender {
NSRange range;
range.location = 0;
range.length = 4;
_bubbleMenu = [[LIVBubbleMenu alloc] initWithPoint:self.partialButton.center radius:150 menuItems:[_images subarrayWithRange:range] inView:self.view];
_bubbleMenu.delegate = self;
_bubbleMenu.easyButtons = NO;
_bubbleMenu.bubbleStartAngle = 0.0f;
_bubbleMenu.bubbleTotalAngle = 180.0f;
[_bubbleMenu show];
}
Delegate方法:
-(void)livBubbleMenu:(LIVBubbleMenu *)bubbleMenu tappedBubbleWithIndex:(NSUInteger)index {
NSLog(@"User has selected bubble index: %tu", index);
}
-(void)livBubbleMenuDidHide:(LIVBubbleMenu *)bubbleMenu {
NSLog(@"LIVBubbleMenu has been hidden");
}
其他初始化方法:
在某个点弹出:
[[LIVBubbleMenu alloc] initWithPoint:CGPointMake(100,100) radius:150 menuItems:array inView:self.view];
在view中间:
LIVBubbleMenu *bubbleMenu = [[LIVBubbleMenu alloc] initCenteredInWindowWithRadius:150 menuItems:images];
温馨提醒:如果想要用回Demo中那些表情的话记得去Images.xcassets文件夹中去拿哦!
详情请参考Demo或者gitHub上的文档。
源码下载:http://code.662p.com/view/10082.html
使用方法:
支持CocoaPods:
pod 'LIVBubbleMenu'
或者复制LIVBubbleMenu文件夹到项目中使用。
#import "LIVBubbleMenu.h"
示例代码:
- (IBAction)moodButtonTapped {
_bubbleMenu = [[LIVBubbleMenu alloc] initWithPoint:self.moodButton.center radius:150 menuItems:_images inView:self.view];
_bubbleMenu.delegate = self;
_bubbleMenu.easyButtons = NO;
[_bubbleMenu show];
}
- (IBAction)partialButtonTapped:(id)sender {
NSRange range;
range.location = 0;
range.length = 4;
_bubbleMenu = [[LIVBubbleMenu alloc] initWithPoint:self.partialButton.center radius:150 menuItems:[_images subarrayWithRange:range] inView:self.view];
_bubbleMenu.delegate = self;
_bubbleMenu.easyButtons = NO;
_bubbleMenu.bubbleStartAngle = 0.0f;
_bubbleMenu.bubbleTotalAngle = 180.0f;
[_bubbleMenu show];
}
Delegate方法:
-(void)livBubbleMenu:(LIVBubbleMenu *)bubbleMenu tappedBubbleWithIndex:(NSUInteger)index {
NSLog(@"User has selected bubble index: %tu", index);
}
-(void)livBubbleMenuDidHide:(LIVBubbleMenu *)bubbleMenu {
NSLog(@"LIVBubbleMenu has been hidden");
}
其他初始化方法:
在某个点弹出:
[[LIVBubbleMenu alloc] initWithPoint:CGPointMake(100,100) radius:150 menuItems:array inView:self.view];
在view中间:
LIVBubbleMenu *bubbleMenu = [[LIVBubbleMenu alloc] initCenteredInWindowWithRadius:150 menuItems:images];
温馨提醒:如果想要用回Demo中那些表情的话记得去Images.xcassets文件夹中去拿哦!
详情请参考Demo或者gitHub上的文档。
源码下载:http://code.662p.com/view/10082.html
0 0
- 气泡型弹出菜单效果
- android 弹出框菜单效果
- Android仿微博菜单弹出效果
- PopupWindow实现弹出菜单效果
- JQuery鼠标经过弹出气泡框的js特效效果
- ios气泡弹出框popover效果系统原生方法实现
- IOS实现弹出菜单效果MenuViewController(背景 景深 弹出菜单)
- IOS实现弹出菜单效果MenuViewController(背景 景深 弹出菜单)
- jQuery-ajax实现的弹出菜单效果
- Unity3D GUI菜单弹出隐藏的效果
- [Android实例] popupwindow实现弹出菜单效果
- 轻量级的菜单弹出效果 - RNExpandingButtonBar
- 高仿UC浏览器弹出菜单效果
- 高仿UC浏览器弹出菜单效果
- 关于GUI菜单弹出隐藏的效果
- 用view实现popwindow效果,弹出菜单.
- Android_自定义水波纹菜单弹出效果
- Android 毛玻璃效果弹出菜单动画
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Adobe Acrobat使用高亮文本标记,但是文字却被遮住了
- Date,Calendar实例
- 盘点PHP编程常见失误
- 关于委托的一点理解。
- 气泡型弹出菜单效果
- 根据csproj文件查看项目的版本信息
- linux下.run文件的安装与卸载
- Java注解Annotation详解
- 史上最简单的eclipse安装svn插件
- hibernate(三)入门级--hibernate实例
- Nagios各组件简述及nrpe详解
- Hive几种数据导入方式
- Spring Batch 批处理框架