Giter Site home page Giter Site logo

ios140822 / lgapplications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrlee767201403/lgapplications

0.0 0.0 0.0 8.13 MB

个人小demo集合:①ActionSheet; ②PickerView; ③ScrollView嵌套; ④渐变文字Label; ⑤tableView实现单选; ⑥InputView 自动调整高度,自动跟随键盘

Objective-C 99.95% Ruby 0.05%

lgapplications's Introduction

LGApplications

个人demo集合 未完待续

下载后找不到PCH文件的,可以在 Build Settings里搜索prefix header, 然后 设置 Precompile Prefix Header 为YES; 再设置 Prefix Header 路径, 双击后,直接把左侧的PrefixHeader.pch拉进弹框里,回车就OK了. 不明白的参考http://blog.csdn.net/lg767201403/article/details/72910696 这篇博客

将自己自定义的一些控件,写成demo,有需要的朋友可以拿来参考

LGApplications/Util/LGViews : 自定义View

LGApplications/Util/Category : 里面都是项目中常用的,几乎每个项目必备

LGApplications/Util/LGUtil : 一些常用的公有方法

LGApplications/Util/UIDefines.h : 常用的宏

注: 里面用到最常用的两个框架SDWebImage 和 Masonry

申明: 项目内容仅供参考,使用过程中带来任何bug,概不负责

1.LGActionSheet : 类似微信的那个底部弹窗,使用简单方便

2.LGPickerView : 滑动选择器,支持自定义选项,日期,地区三种样式,自定义选项只需要传进去options数组即可

3.SingleChoiceTableView : 用tableView实现多个题目的单项选择,只提供一个思路,毕竟具体项目需要不同

4.LGTextView : 带placeholder的textView

5.LGGradientLabel : 渐变文字Label

6.LGAlertView : 自定义的一个AlertView,默认有一个取消按钮,可以单独添加事件,传入确定按钮的title后会有两个按钮

LGAlertView *alert = [[LGAlertView alloc] initWithTitle:nil content:@"你开心就好" confirmTitle:nil];

alert.cancelTitle = @"确定";

[alert show];

7.LGInputView : 自定义输入框,可根据文字多少自动调整高度,设置最大高度,达到最大高度后内容可滚动,自动跟随键盘,用最简单的方法实现的,比较low,但也蛮好用的,可以自行添加所需的按妞

image

8.LGRollView : 自动循环滚动的广告条

9.ScrollView/TableView嵌套

image

10.CommonCell

image

11.TextViewCell

image

输入多行文字后

image

12.LocationManager

获取当前位置并解析出地址

13.IndexSectionView

自定义tableView 右侧索引

14.LGToastView

类似MBProgressHUD消息弹窗 2秒后自动消失

lgapplications's People

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.