GithubHelp home page GithubHelp logo

guopf0550 / llslidemenu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lilei644/llslidemenu

0.0 1.0 0.0 1.05 MB

This is a spring slide menu for iOS apps - 一个弹性侧滑菜单

License: MIT License

Ruby 2.23% Objective-C 97.77%

llslidemenu's Introduction

LLSlideMenu

This is a spring slide menu for iOS apps
一个弹性侧滑菜单

弹性动画原理借鉴该项目中阻尼函数实现

Preview  预览

image

Installation  安装

  • pod
    1.pod 'LLSlideMenu', '~> 1.0.6'
    2.pod install       // 若获取失败请重新 pod setup
    3.#import "LLSlideMenu.h"
  • Common
    1.Add "LLSlideMenu" files to your Project   // 直接导入“LLSlideMenu”文件夹到项目中
    2.#import "LLSlideMenu.h"

Usage  用法

  • Init  初始化
LLSlideMune *slideMenu = [[LLSlideMune alloc] init];
[self.view addSubview:slideMenu];
  • Base Property  基本属性
// 设置菜单宽度  menu width
_slideMenu.ll_menuWidth = 200.f;

// 设置菜单背景色  background color
_slideMenu.ll_menuBackgroundColor = [UIColor redColor];

// 设置菜单背景图片  background image
_slideMenu.ll_menuBackgroundImage = [UIImage imageNamed:@"image"];

// 背景色或背景图片设置一个即可  background image and color select one

  • Open or Close  打开或关闭
[_slideMenu ll_openSlideMenu];      // 打开  open
[_slideMenu ll_closeSlideMenu];     // 关闭  close
  • GestureRecognizer  手势监听
_slideMenu.ll_distance = 100.f;     // 拉伸距离  pulling distance
  • Spring and Frames  弹力和关键帧设置(可控制弹性效果和时间)
_slideMenu.ll_springDamping = 20;       // 阻力
_slideMenu.ll_springVelocity = 15;      // 速度
_slideMenu.ll_springFramesNum = 60;     // 关键帧数量

Requirements  版本要求

IOS 6.0 Above

License

LLSlideMenu is provided under the MIT license. See LICENSE file for details.

llslidemenu's People

Contributors

lilei644 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.