GithubHelp home page GithubHelp logo

xhpopmenu's Introduction

XHPopMenu

a menu like pop view 弹出菜单

Platform License CocoaPods Version

Using CocoaPods

pod 'XHPopMenu'

目前支持的自定义选项...

@property (nonatomic, assign) XHPopMenuAnimationStyle style; // 动画风格
@property (nonatomic, assign) CGFloat arrowSize; // 箭头大小
@property (nonatomic, assign) CGFloat arrowMargin; // 手动设置箭头和目标view的距离
@property (nonatomic, assign) CGFloat marginXSpacing; // MenuItem左右边距
@property (nonatomic, assign) CGFloat marginYSpacing; // MenuItem上下边距
@property (nonatomic, assign) CGFloat intervalSpacing; // MenuItemImage与MenuItemTitle的间距
@property (nonatomic, assign) CGFloat menuCornerRadius; // 菜单圆角半径
@property (nonatomic, assign) CGFloat menuScreenMinMargin; // 菜单和屏幕最小间距
@property (nonatomic, assign) CGFloat menuMaxHeight; // 菜单最大高度
@property (nonatomic, assign) CGFloat seperatorInsetLeft; // 分割线左侧Insets
@property (nonatomic, assign) CGFloat seperatorInsetRight; // 分割线右侧Insets
@property (nonatomic, assign) CGFloat seperatorHeight; // 分割线高度
@property (nonatomic, assign) CGFloat fontSize; // 字体大小
@property (nonatomic, assign) CGFloat itemHeight; // 单行高度
@property (nonatomic, assign) CGFloat itemMaxWidth; // 单行最大宽度
@property (nonatomic, assign) NSTextAlignment alignment; // 文字对齐方式
@property (nonatomic, assign) Boolean shadowOfMenu; // 是否添加菜单阴影
@property (nonatomic, assign) Boolean hasSeperatorLine; // 是否设置分割线

@property (nonatomic, strong) UIColor *titleColor; // menuItem字体颜色
@property (nonatomic, strong) UIColor *seperatorColor; // 分割线颜色
@property (nonatomic, strong) UIColor *shadowColor; // 阴影颜色
@property (nonatomic, strong) UIColor *menuBackgroundColor; // 菜单的底色
@property (nonatomic, strong) UIColor *selectedColor; // menuItem选中颜色
@property (nonatomic, strong) UIColor *maskBackgroundColor; // 遮罩颜色

###gif 预览图

xhpopmenu's People

Contributors

chengxianghe avatar

Watchers

 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.