diff --git a/CHANGELOG.md b/CHANGELOG.md index 585dc798..2059993d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v. 2.0.1 +- `MGCDayPlannerView` : + - new property `dayHeaderTextColor` + ## v. 2.0 - Deployment target is now iOS 8.0 diff --git a/CalendarLib.podspec b/CalendarLib.podspec index 3bf164d4..2b68e566 100644 --- a/CalendarLib.podspec +++ b/CalendarLib.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "CalendarLib" - s.version = "2.0" + s.version = "2.0.1" s.summary = "A set of views and controllers for displaying and scheduling events on iOS" s.homepage = "https://github.com/jumartin/Calendar" s.license = "MIT" s.author = { "Julien Martin" => "julienmartin@hotmail.com" } s.platform = :ios, "8.0" - s.source = { :git => "https://github.com/jumartin/Calendar.git", :tag => s.version.to_s } + s.source = { :git => "https://github.com/ATINO-GmbH/Calendar.git", :tag => s.version.to_s } s.screenshots = [ "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/DayPlannerView.jpg", "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/MonthPlannerView.jpg", "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/YearView.jpg"] s.source_files = "CalendarLib/**/*.{h,m}" s.public_header_files = "CalendarLib/{MGCDateRange.h,NSCalendar+MGCAdditions.h,NSAttributedString+MGCAdditions.h,MGCDayPlannerEKViewController.h,MGCMonthPlannerEKViewController.h,MGCEventView.h,MGCStandardEventView.h,MGCDayPlannerView.h,MGCDayPlannerViewController.h,MGCMonthPlannerView.h,MGCMonthPlannerViewController.h,MGCMonthMiniCalendarView.h,MGCYearCalendarView.h,MGCReusableObjectQueue.h}" diff --git a/CalendarLib/MGCDayPlannerView.h b/CalendarLib/MGCDayPlannerView.h index bf1d1e31..27ea9d66 100755 --- a/CalendarLib/MGCDayPlannerView.h +++ b/CalendarLib/MGCDayPlannerView.h @@ -117,6 +117,13 @@ typedef NS_ENUM(NSUInteger, MGCDayPlannerTimeMark) { */ @property (nonatomic) CGFloat dayHeaderHeight; + +/* + @abstract Returns the color of text of the top row showing days. + @discussion The default value is white. + */ +@property (nonatomic) UIColor *dayHeaderTextColor; + /*! @abstract Returns the color of the vertical separator lines between days. @discussion The default value is light gray. diff --git a/CalendarLib/MGCDayPlannerView.m b/CalendarLib/MGCDayPlannerView.m index 33769d02..eef1e0b9 100755 --- a/CalendarLib/MGCDayPlannerView.m +++ b/CalendarLib/MGCDayPlannerView.m @@ -1841,7 +1841,13 @@ - (UICollectionViewCell*)dayColumnCellAtIndexPath:(NSIndexPath*)indexPath if ([self.calendar mgc_isDate:date sameDayAsDate:[NSDate date]]) { accessoryTypes |= MGCDayColumnCellAccessoryMark; dayCell.markColor = self.tintColor; - color = [UIColor whiteColor]; + + if(self.dayHeaderTextColor){ + color = self.dayHeaderTextColor; + }else{ + color = [UIColor whiteColor]; + } + font = [UIFont boldSystemFontOfSize:14]; }