Giter Site home page Giter Site logo

hypopmenuview's Introduction


#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!

hypopmenuview's People

Contributors

wwdc14yh avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.