Skip to content

wwdc14yh/HyPopMenuView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 5, 2016
52a7b16 · Dec 5, 2016

History

26 Commits
Oct 16, 2016
Dec 5, 2016
Oct 16, 2016
Feb 2, 2016
Oct 16, 2016
Jul 18, 2016
Dec 5, 2016
Jul 18, 2016
Sep 9, 2015
Sep 9, 2015
Dec 5, 2016
Dec 5, 2016
Jul 18, 2016
Dec 5, 2016
Nov 5, 2016
Nov 21, 2015
Jul 18, 2016

Repository files navigation


#HyPopMenuView

Platform Language License

关于HyPopMenuView灵感来自于新浪微博App

####示例:
1.效果1 image

2.效果2 image

3.效果3 image

4.效果4 image

###特性(可选)

  • 多种动画效果,参考示例。

  • 转场效果 image image

  • 两种背景颜色 Light & Dark

###原理说明(可选) 1.本项目采用Facebook开源的动画框架-Pop,有兴趣的朋友可以去了解下。

下载安装

安装方法:
将下载好的项目提取以下类托入项目中 HyPopMenuViewDelegate.h HyPopMenuView.h PopMenuModel.h PopMenuButton.h UIColor+ImageGetColor.hHyPopMenuView.himport

###使用方法 实例HyPopMenuView

@property (nonatomic, strong) HyPopMenuView* menu;
_menu = [HyPopMenuView sharedPopMenuManager];

###属性以及方法说明 数据源,支持类型PopMenuModel

@property (nonatomic, retain) NSArray<PopMenuModel*>* dataSource

背景类型默认为 HyPopMenuViewBackgroundTypeLightBlur 可以改变背景类型,详情看枚举说明。

@property (nonatomic, assign) HyPopMenuViewBackgroundType backgroundType

动画类型默认为 HyPopMenuViewAnimationTypeSina 可以改变弹出动画类型类型,详情看枚举说明。

@property (nonatomic, assign) HyPopMenuViewAnimationType animationType

自动识别icon背景颜色,默认关闭。

@property (nonatomic, assign) BOOL automaticIdentificationColor;

代理,回调相关属性

@property (nonatomic, assign) id<HyPopMenuViewDelegate> delegate;

弹出动画速度,取值范围: 0.0f ~ 20.0f,默认为 10.0f。

@property (nonatomic, assign) CGFloat popMenuSpeed;

顶部自定义View

@property (nonatomic, strong) UIView* topView;

##公有方法

初始化方法

+ (instancetype)sharedPopMenuManager;

打开菜单(dataSource属性必须赋值)

- (void)openMenu;

关闭菜单

- (void)closeMenu;

是否打开菜单 yes为打开,no为关闭

- (BOOL)isOpenMenu;

##通知相关

相信我不用解释是什么意思了吧

UIKIT_EXTERN NSString* const HyPopMenuViewWillShowNotification;
UIKIT_EXTERN NSString* const HyPopMenuViewDidShowNotification;
UIKIT_EXTERN NSString* const HyPopMenuViewWillHideNotification;
UIKIT_EXTERN NSString* const HyPopMenuViewDidHideNotification;

注意事项

开源库需要Facebook开源的动画框架-Pop支持。

期待

  • 如果在使用过程中遇到BUG,希望你能Issues我
  • 如果觉得好用请Star!

About

模仿新浪微博弹出菜单

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published