Code Monkey home page Code Monkey logo

learnswift's Introduction

LXFMenuPageController

快速创建菜单分类控制器

基于Swfit 3.0

使用

###初始化 1.创建LXFMenuPageController

2.设置代理(可选)

3.将创建的LXFPageViewController视图添加到当前控制器视图中

let menuVc = LXFMenuPageController(controllers: self.controllers, titles: self.subTitleArr)
menuVc.delegate = self
menuVc.view.frame = self.view.frame
self.view.addSubview(menuVc.view)

###代理方法

// MARK: 获取当前子控制器的角标
func lxf_MenuPageCurrentSubController( index: NSInteger, menuPageController: LXFMenuPageController)

###对外提供的属性

/// 代理
delegate: LXFMenuPageControllerDelegate?
/// 滑块颜色
sliderColor: UIColor
/// 子标题按钮未选中颜色
tipBtnNormalColor : UIColor
/// 子标题按钮选中颜色
tipBtnHighlightedColor : UIColor
/// 子标题按钮UIFont
tipBtnFontSize : CGFloat
/// 头部视图颜色
headerColor: UIColor

效果图

image

learnswift's People

Watchers

 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.