1 Star 0 Fork 11

zwcshy/RCalendarPicker

forked from 杜耀辉/RCalendarPicker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
params.json 4.22 KB
一键复制 编辑 原始数据 按行查看 历史
杜耀辉 提交于 2016-11-24 13:10 . Create master branch via GitHub
{
"name": "Rcalendarpicker",
"tagline": "RCalendarPicker 日历控件 ,日历选择控件,日历,日期选择",
"body": "\r\n# RCalendarPicker\r\n\r\nRCalendarPicker Calendar calendar control, select control, calendar, date selection, the clock selection control. 日历控件 ,日历选择控件,日历,日期选择,时钟选择控件\r\n\r\n# Preview\r\n\r\n![预览1](https://roycms.github.io/RCalendarPicker/RCalendarPicker/Resource/calendar.jpg) \r\n![预览2](https://roycms.github.io/RCalendarPicker/RCalendarPicker/Resource/clock.jpg)\r\n\r\n# cocoapods\r\n\r\n```\r\npod 'RCalendarPicker'\r\n```\r\n\r\n# Use \r\n\r\ndefault: MainScreenWidth = 360 MainScreenHeight = 960\r\n```\r\n RCalendarPickerView *calendarPicker = [[RCalendarPickerView alloc]initWithFrame:CGRectMake(0, 0, MainScreenWidth, MainScreenHeight)];\r\n calendarPicker.today = [NSDate date]; //现在时间\r\n calendarPicker.date = calendarPicker.today; //选择时间\r\n calendarPicker.complete = ^(NSInteger day, NSInteger month, NSInteger year, NSDate *date){\r\n NSLog(@\"%d-%d-%d\", (int)year,(int)month,(int)day);\r\n };\r\n [self.view addSubview:calendarPicker];\r\n```\r\n\r\n# The lunar calendar \r\n```\r\nRCalendarPickerView *calendarPicker = [[RCalendarPickerView alloc]initWithFrame:CGRectMake(0, 0, MainScreenWidth, MainScreenHeight)];\r\n calendarPicker.isZn = YES; //开启农历\r\n calendarPicker.today = [NSDate date]; //现在时间\r\n calendarPicker.date = calendarPicker.today; //选择时间\r\n calendarPicker.complete = ^(NSInteger day, NSInteger month, NSInteger year, NSDate *date){\r\n NSLog(@\"%d-%d-%d\", (int)year,(int)month,(int)day);\r\n };\r\n [self.view addSubview:calendarPicker];\r\n```\r\n\r\n# A clock dial effect\r\n```\r\n RClockPickerView *rClockPickerView = [[RClockPickerView alloc]initWithFrame:CGRectMake(0, 0, MainScreenWidth, MainScreenHeight)\r\n clockRadius:140\r\n clockCalibrationRadius:130];\r\n rClockPickerView.date = [NSDate date];\r\n rClockPickerView.complete = ^(NSInteger hours, NSInteger minutes, NSInteger noon){\r\n NSLog(@\"%d-%d-%d\", (int)hours,(int)minutes,(int)noon);\r\n \r\n };\r\n [self.view addSubview:rClockPickerView];\r\n```\r\n\r\n# calendar + clock use\r\n```\r\nRCalendarPickerView *calendarPicker = [[RCalendarPickerView alloc]initWithFrame:CGRectMake(0, 0, MainScreenWidth, MainScreenHeight)];\r\n calendarPicker.today = [NSDate date]; //现在时间\r\n calendarPicker.date = calendarPicker.today; //选择时间\r\n [self.view addSubview:calendarPicker];\r\n \r\n calendarPicker.complete = ^(NSInteger day, NSInteger month, NSInteger year, NSDate *date){\r\n NSLog(@\"%d-%d-%d\", (int)year,(int)month,(int)day);\r\n \r\n RClockPickerView *rClockPickerView = [[RClockPickerView alloc]initWithFrame:CGRectMake(0, 0, MainScreenWidth, MainScreenHeight)\r\n clockRadius:140\r\n clockCalibrationRadius:130];\r\n rClockPickerView.date = [NSDate date];\r\n rClockPickerView.complete = ^(NSInteger hours, NSInteger minutes, NSInteger noon){\r\n NSLog(@\"%d-%d-%d\", (int)hours,(int)minutes,(int)noon);\r\n \r\n NSDate *selectDate = [DateHelper dateInDate:date Hours:hours>12?hours%12:hours minutes:minutes];\r\n \r\n NSLog(@\"selectDate: %@\",selectDate);\r\n \r\n };\r\n [self.view addSubview:rClockPickerView];\r\n };\r\n\r\n```\r\n\r\n# TODO\r\n\r\n* 增加上下午的判断和参数处理\r\n* 增加主题定义\r\n* 增加选择年月的切换形式\r\n\r\n",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/zwcshy/RCalendarPicker.git
git@gitee.com:zwcshy/RCalendarPicker.git
zwcshy
RCalendarPicker
RCalendarPicker
master

搜索帮助