Skip to content

Commit

Permalink
Update Podspec to 0.9.0 & README
Browse files Browse the repository at this point in the history
  • Loading branch information
jmig committed Aug 10, 2015
1 parent 6b2828d commit 0d0ef68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 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
Expand Down
21 changes: 13 additions & 8 deletions README.md
Expand Up @@ -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`

Expand All @@ -30,7 +30,7 @@ And finally in your project import `#import <PDTSimpleCalendar/PDTSimpleCalendar

In your `Cartfile` simply add:

`github "jivesoftware/PDTSimpleCalendar" ~> 0.8.0`
`github "jivesoftware/PDTSimpleCalendar" ~> 0.9.0`

run `carthage update`

Expand All @@ -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]];
Expand All @@ -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:

Expand All @@ -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.
Expand Down

0 comments on commit 0d0ef68

Please sign in to comment.