MGConferenceDatePicker

https://github.com/matteogobbi/MGConferenceDatePicker

MGConferenceDatePicker is an object wich extend a UIView furnishing a very nice type of data picker.

MGConferenceDatePicker是一个对象,扩展了UIView并展示出一个样式华丽的时间选择器.

Info

This code must be used under ARC. If your code doesn't use ARC you can mark this source with the compiler flag -fobjc-arc

这份代码是在ARC下使用的.如果你的项目不支持ARC,你可以加一个编译标签-fobjc-arc

Example Usage

In the package is included the project to test the object. This is an easy example to init the control from code:

zip包中已经包含了使用样例,使用起来是非常简单的:

    //New view controller
UIViewController *pickerViewController = [[UIViewController alloc] init]; //Init the datePicker view and set self as delegate
MGConferenceDatePicker *datePicker = [[MGConferenceDatePicker alloc] initWithFrame:self.view.bounds];
[datePicker setDelegate:self]; //OPTIONAL: Choose the background color
[datePicker setBackgroundColor:[UIColor whiteColor]]; //Set the data picker as view of the new view controller
[pickerViewController setView:datePicker]; //Present the view controller
[self presentViewController:pickerViewController animated:YES completion:nil];

Or you are also able to set the view directly in the NIB or in the XIB file and simply just set the delegate from code.

See the example's project.

或者,你也可以将这个view直接设置到NIB或者XIB文件中,在代码中设置代理即可.

附录:

-以下是封装的一些细节-

一个文件中封装了3个类:

界面上的选择由4个scrollView组成:

总结:

这个MGConferenceDatePicker极具学习价值:)

最新文章

  1. CSS篇
  2. android Intent的常用flags
  3. mysql下载安装
  4. bloom filter
  5. mysql(或者mariadb)连接工具HeidiSQL
  6. ssh传输出现encountered 1 errors during the transfer解决办法
  7. SecureCRT访问开发板linux系统
  8. android - python 自动化测试 移动互联网 - SegmentFault
  9. JavaScript学习心得(六)
  10. SIM卡基础知识
  11. JQuery中如何动态修改input的type属性
  12. datatable,查询,排序,复制等操作
  13. Windows内核中的内存管理
  14. phpstudy php5.4以上版本伪静态设置 thinkphp
  15. 在Ubuntu12.04上安装图形化配置与window共享的samba服务器
  16. Oracle 数据库基础知识
  17. NB-IoT不一定最完美 但足以成为决定ofo与摩拜物联网胜负的关键【转】
  18. Linux安装Tomcat-Nginx-FastDFS-Redis-Solr-集群——【第七集之SSH远程连接——克隆与更改配置】
  19. 简单的三道shell例题
  20. CentOS 7不能进入图形界面

热门文章

  1. SSM的XML和WEB.XML的配置
  2. PHP 浮点数 转化 整数方法对比 ceil,floor,round,intval,number_format
  3. ES5支持的方法
  4. hadoop-2.6.0.tar.gz + spark-1.5.2-bin-hadoop2.6.tgz的集群搭建(单节点)(Ubuntu系统)
  5. 在Linux上创建webrev(cont)[基于svn]
  6. session_start()导致history.go(-1)返回时无法保存表单数据的解决方法
  7. 【总结】java 后台文件上传整理
  8. vue做的简单购物车
  9. WeifenLuo.WinFormsUI.Docking.dll的用法
  10. mysql索引对单表查询的影响