Update example

Update example
This commit is contained in:
Wenchao Ding 2016-08-28 14:26:37 +08:00
parent 6cf6176c35
commit 2b084bd8f0
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,6 @@
calendar.firstWeekday = 2;
calendar.placeholderType = FSCalendarPlaceholderTypeFillHeadTail;
calendar.appearance.caseOptions = FSCalendarCaseOptionsWeekdayUsesSingleUpperCase|FSCalendarCaseOptionsHeaderUsesUpperCase;
calendar.placeholderType = FSCalendarPlaceholderTypeFillHeadTail;
[self.view addSubview:calendar];
self.calendar = calendar;

View File

@ -1056,7 +1056,7 @@ typedef NS_ENUM(NSUInteger, FSCalendarOrientation) {
- (BOOL)floatingMode
{
return _scrollEnabled && !_pagingEnabled;
return _scope == FSCalendarScopeMonth && _scrollEnabled && !_pagingEnabled;
}
- (void)setShowsScopeHandle:(BOOL)showsScopeHandle

View File

@ -17,9 +17,10 @@ class ViewController: UIViewController, FSCalendarDataSource, FSCalendarDelegate
"20160206","20160306","20160406","20160506","20160606","20160706"]
override func viewDidLoad() {
super.viewDidLoad()
calendar.scrollDirection = .Vertical
calendar.appearance.caseOptions = [.HeaderUsesUpperCase,.WeekdayUsesUpperCase]
calendar.selectDate(calendar.dateWithYear(2015, month: 10, day: 10))
// calendar.scope = .Week
calendar.scopeGesture.enabled = true
// calendar.allowsMultipleSelection = true
// Uncomment this to test month->week and week->month transition