CLWeeklyCalendarView.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // CLWeeklyCalendarView.h
  3. // Deputy
  4. //
  5. // Created by Caesar on 30/10/2014.
  6. // Copyright (c) 2014 Caesar Li. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol CLWeeklyCalendarViewDelegate <NSObject>
  10. // Keys for customize the calendar behavior
  11. extern NSString *const CLCalendarWeekStartDay; //The Day of weekStart from 1 - 7 - Default: 1
  12. extern NSString *const CLCalendarDayTitleTextColor; //Day Title text color, Mon, Tue, etc label text color
  13. extern NSString *const CLCalendarSelectedDatePrintFormat; //Selected Date print format, - Default: @"EEE, d MMM yyyy"
  14. extern NSString *const CLCalendarSelectedDatePrintColor; //Selected Date print text color -Default: [UIColor whiteColor]
  15. extern NSString *const CLCalendarSelectedDatePrintFontSize; //Selected Date print font size - Default : 13.f
  16. extern NSString *const CLCalendarBackgroundImageColor; //BackgroundImage color - Default : see applyCustomDefaults.
  17. -(NSDictionary *)CLCalendarBehaviorAttributes; //Optional Function, Set the calendar behavior attributes by using above keys
  18. -(void)dailyCalendarViewDidSelect: (NSDate *)date;
  19. @end
  20. @interface CLWeeklyCalendarView : UIView
  21. @property (nonatomic, weak) id<CLWeeklyCalendarViewDelegate> delegate;
  22. @property (nonatomic, strong) NSDate *selectedDate;
  23. @property (nonatomic, assign) BOOL isLimitDate;
  24. @property (nonatomic, strong) NSArray *greenDayArray;
  25. - (void)redrawToDate: (NSDate *)dt;
  26. -(void)updateWeatherIconByKey: (NSString *)key;
  27. @end
  28. // 版权属于原作者
  29. // http://code4app.com (cn) http://code4app.net (en)
  30. // 发布代码于最专业的源码分享网站: Code4App.com