From 0d0ef6883de95988e1b5c058f8e62b244ed79e69 Mon Sep 17 00:00:00 2001 From: Jerome Miglino Date: Mon, 10 Aug 2015 11:29:09 -0400 Subject: [PATCH] Update Podspec to 0.9.0 & README --- PDTSimpleCalendar.podspec | 2 +- README.md | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/PDTSimpleCalendar.podspec b/PDTSimpleCalendar.podspec index 091775d..6a20c15 100644 --- a/PDTSimpleCalendar.podspec +++ b/PDTSimpleCalendar.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "PDTSimpleCalendar" - s.version = "0.8.0" + s.version = "0.9.0" s.summary = "A simple Calendar/Date Picker with a nice iOS7/iOS8 design." s.description = <<-DESC diff --git a/README.md b/README.md index 3177d24..b702a4b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ You should read the [Release Notes](https://github.com/jivesoftware/PDTSimpleCal in your `Podfile` just add: -`pod 'PDTSimpleCalendar', '~> 0.8.0'` +`pod 'PDTSimpleCalendar', '~> 0.9.0'` then run `pod install` @@ -30,7 +30,7 @@ And finally in your project import `#import 0.8.0` +`github "jivesoftware/PDTSimpleCalendar" ~> 0.9.0` run `carthage update` @@ -45,17 +45,17 @@ If you don't like cocoapods or Carthage or Cocoapods-Rome, you can still import ##Customize it ###Calendar -* `firstDate` : When the calendar must starts. If you don't specify anything, it will default to the first day of the current month (based on `[NSDate date]`). -* `lastDate` : When the calendar must ends. If you don't specify anything, it will default to the last day of the next year (based on `firstDate`). +* `firstDate` : When the calendar must starts. If you don't specify anything, it will default to the first day of the current month (based on `[NSDate date]`). If `firstDate` is not the 1st of the month, the calendar will display the full month, but dates < `firstDate` will be disabled. +* `lastDate` : When the calendar must ends. If you don't specify anything, it will default to the last day of the next year (based on `firstDate`). If `lastDate` is not the last day of the month, the calendar will display the full month, but dates > `lastDate` will be disabled. * `calendar` : Which calendar to use for display and date calculations. You can set any calendar supported by `NSCalendar`. the default value will be `[NSCalendar currentCalendar]`. - -**New in 0.6**: if you specify a 'firstDate' and/or 'lastDate' the calendar will display the full month, but dates < firstDate or > lastDate will be disabled. You can see this behavior in the demo app. +* `weekdayHeaderEnabled`: If enabled, add an extra header on top of the calendar with the days of the week. Default is NO. +* `weekdayTextType`: If weekday header is enabled, you can customize the format of the label. (Short (3 letters), VeryShort (1 letter), StandAlone (Full name of the day)) ###Colors You can change the display of the calendar using `backgroundColor` & `overlayTextColor` properties on `PDTSimpleCalendarViewController`. -Other colors can be set using UIAppearance on `PDTSimpleCalendarViewCell` & `PDTSimpleCalendarViewHeader` +Other colors can be set using UIAppearance on `PDTSimpleCalendarViewCell`, `PDTSimpleCalendarViewHeader` & `PDTSimpleCalendarViewWeekdayHeader` [[PDTSimpleCalendarViewCell appearance] setCircleDefaultColor:[UIColor whiteColor]]; [[PDTSimpleCalendarViewCell appearance] setCircleSelectedColor:[UIColor orangeColor]]; @@ -67,6 +67,11 @@ Other colors can be set using UIAppearance on `PDTSimpleCalendarViewCell` & `PDT [[PDTSimpleCalendarViewHeader appearance] setTextColor:[UIColor redColor]]; [[PDTSimpleCalendarViewHeader appearance] setSeparatorColor:[UIColor orangeColor]]; + + [[PDTSimpleCalendarViewWeekdayHeader appearance] setHeaderBackgroundColor:[UIColor lightGrayColor]]; + [[PDTSimpleCalendarViewWeekdayHeader appearance] setTextColor:[UIColor orangeColor]]; + +*See the Demo for the full API and even more customization.* Here is how it looks in the Producteev app: @@ -76,7 +81,7 @@ Here is how it looks in the Producteev app: ##License ``` -Copyright 2013 Jive Software, Inc. +Copyright 2013-2015 Jive Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.