Giter Club home page Giter Club logo

gksetting's Introduction

GKSetting - iOS快速集成各种设置界面

说明

我们做APP的时候总会遇到各种的设置界面,在这里我对一些通用的cell进行了封装,能够快速创建并设置一些属性,做一些跳转等,让我们能够快速的集成设置界面,而不用去自定义cell,可以减少代码量。

GKSetting中包含了以下cell的形式:

所有item都继承自GKSettingItem:可设置cell的高度、背景色、选中背景色、分割线位置、detailTextLabel位置等

1、GKSettingArrowItem:带右箭头的cell,箭头可隐藏
2、GKSettingIconItem:继承自GKSettingArrowItem,可设置ImageView的大小、位置登
3、GKSettingSwitchItem:带开关的cell
4、GKSettingExitItem:textLabel现在在中间,通常用于退出登录

使用

1、首先添加GKSettingView,里面包含了UITableView
2、创建需要的GKSettingItem,设置属性
3、创建GKSettingGroup可设置section的文字、高度,添加item
4、刷新GKSettingView

效果图

test1

test2

me

setting

notify

gksetting's People

Contributors

quintgao avatar

Watchers

James Cloos avatar Zhenwei Guan 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.