Commit Graph

208 Commits

Author SHA1 Message Date
Wenchao Ding c3f71f93c2 Hide useless rows in FSCalendarPlaceholderTypeFillHeadTail
Hide useless rows in FSCalendarPlaceholderTypeFillHeadTail
2016-07-10 17:53:14 +08:00
Wenchao Ding b8fe21ba54 Use NSPredicate
Use NSPredicate
2016-07-09 18:23:39 +08:00
Wenchao Ding e2c115801c Introduce FSCalenadrPlaceholderType
Introduce FSCalenadrPlaceholderType
2016-07-06 12:02:19 +08:00
Wenchao Ding 236b933a43 Update README.md
Update README.md
2016-07-03 00:17:09 +08:00
Wenchao Ding 056d69b42a Update Resources
Update Resources
2016-07-02 20:17:52 +08:00
Wenchao Ding ac09139a46 Fix a small mistake in demo project
Fix a small mistake in demo project
2016-06-29 17:32:27 +08:00
Wenchao Ding f2f680b906 Update buttons view controller with arrows
Update buttons view controller with arrows
2016-06-25 17:35:00 +08:00
Wenchao Ding 11c84ae39b Fix issue #335
Fix issue #335
2016-06-21 10:35:55 +08:00
Wenchao Ding deeaf4310f Fix problem cause by double-swipe of scope handle
Fix problem cause by double-swipe of scope handle
2016-06-14 17:18:21 +08:00
Wenchao Ding abadde2b07 Some cleanup
Some cleanup
2016-06-03 17:03:13 +08:00
Wenchao Ding 0eff5f3ded Fix issue #310
Fix issue #310
2016-05-31 16:06:30 +08:00
Wenchao Ding 1df6ad5f69 Add -calendar:titleForDate:
Add -calendar:titleForDate:
2016-05-26 10:35:30 +08:00
Wenchao Ding 47c8174704 Remove unused files
Remove unused files
2016-05-14 14:28:30 +08:00
Wenchao Ding 3feab25e9b Fix #286
Fix #286
2016-05-13 17:10:03 +08:00
Wenchao Ding 81aedee8f9 2.2.0.beta-Scope Handle
2.2.0.beta-Scope Handle
2016-05-11 18:00:57 +08:00
Wenchao Ding d7ac4c9fd0 Fix a storyboard warning
Fix a storyboard warning
2016-05-03 15:55:21 +08:00
Wenchao Ding da9f90ef6e Reorganize structure
Reorganize structure
2016-04-29 16:24:43 +08:00
Wenchao Ding d8f679c960 Include FSCalendarScopeHandle 2016-04-29 16:08:42 +08:00
Wenchao Ding bc3ce07132 Add -centerForDate: and -frameForDate:
Better for a popover
2016-04-24 16:44:11 +08:00
Wenchao Ding e82c22aba4 Add prev-next buttons example
Add prev-next buttons example
2016-04-15 11:12:02 +08:00
Wenchao Ding c4a96e01c7 Improve fill-color
Improve fill-color
2016-04-10 16:52:27 +08:00
Wenchao Ding 7b605941ab Add full documentation
1.  Add full documentation
2. Add ‘nullability’
3. Update example
2016-03-26 11:29:21 +08:00
Wenchao Ding e4aaf98c9e Add event colors in delegate appearance
1. Add ‘event colors’ in delegate appearance
2. Update ignore
2016-03-24 21:36:14 +08:00
Wenchao Ding ee8b6d3a0d Kill some runtime warnings
- Kill some runtime warnings
- Add pragma mark
2016-03-19 18:33:54 +08:00
dingwenchao aaf59dab8c Version Bump 2.0.0
Version Bump 2.0.0
2016-03-17 22:55:42 +08:00
dingwenchao 1ca1b8330a Clean
Clean
2016-03-14 22:26:49 +08:00
dingwenchao 41883c8216 2.0.0.beta
1. Bring in ‘showsPlaceholder’
2. Rendering Event indicators by image instead of CALayer
3. Using FSCalendarAnimator to control animations
4. Update Examples
5. Code clean
2016-03-14 12:11:52 +08:00
dingwenchao e4ea67a4c4 Use [-calendar:boundingRectWillChange:animated:] instead of [-calendarCurrentScopeWillChange:animated:]
Use [-calendar:boundingRectWillChange:animated:] instead of
[-calendarCurrentScopeWillChange:animated:]

This is a preparing for next feature - Hides the placeholder dates. If
this feature is included, there would be more than one cases for the
calendar to change “frame” (If the placeholder dates are hidden, there
would be 4 rows for some months, 2015-02 .e.g; and there would be 6
rows for some months, 2016-01 .e.g; and there would be 5 in most cases)
2016-03-01 21:21:57 +08:00
dingwenchao 131bba5677 Fix crash while frequently changing scope
1. Fix crash while frequently changing scope
2. Fix wrong cell layout while changing orientation under autoLayout
3. Example support RTL
4. Spelling check
2016-02-25 11:35:02 +08:00
dingwenchao dc832b81ae Fix something
1. Better date tools api
2. Fix adjusting event color in Interface builder
3. Version bump
4. Fix RTL problem
5. Use object_setIvar instead of another redundant setter
6. Fix collectionView item size warning of FSCalendarHeader
2016-02-22 15:34:37 +08:00
dingwenchao e6315af801 Support "multiple events"
1. Support "multiple events”
2. Fix #198
2016-02-05 11:23:53 +08:00
dingwenchao bb86d7085f Update framework version
1. Update framework version
2. Make ‘FSCalendarLayout’ private
2016-01-25 12:58:20 +08:00
dingwenchao 83d4a77525 Fix #165
Fix #165
2016-01-24 13:05:08 +08:00
dingwenchao e852116974 Improve 'deprecate' macro
1. Improve 'deprecate' macro
2. Fix warnings
3. Kill redundant codes
4. Update Readme.md
2016-01-24 12:20:34 +08:00
dingwenchao cd44c39f4b Better scope transition behavior
1. Better scope transition behavior
2. Remove redundant lines
3. Improve example
2016-01-22 14:51:12 +08:00
dingwenchao dc83a35a18 1.8.0.beta
Fix wrong version number
2016-01-21 16:05:57 +08:00
dingwenchao cdf3db74a9 Bump version 1.8.1.beta
Focus on ‘selectedDate’ while chasing scope
2016-01-21 15:52:28 +08:00
dingwenchao f8a460d257 UICollectionViewDelegateFlowLayout
UICollectionViewDelegateFlowLayout
2016-01-02 17:13:12 +08:00
dingwenchao 661f376fa5 Detect orientation in App Extension
Fix #162
2015-12-20 15:53:13 +08:00
dingwenchao d4b93102fb Bug fix
Bug fix
2015-12-03 15:45:12 +08:00
dingwenchao 86719057cf Update FullscreenExample with 'lunar' option
Update FullscreenExample with 'lunar' option
2015-12-03 14:12:53 +08:00
dingwenchao 4d21d55c20 Super fast
Super fast
2015-12-03 13:57:39 +08:00
dingwenchao f5959dba04 Not important
Not important
2015-11-30 14:44:04 +08:00
dingwenchao 9fc79b14bb Use older api to adapting iOS7
1. Use older api to adapting iOS7
2. Fix some other iOS7 problem
2015-11-30 14:31:43 +08:00
dingwenchao ee4fe92099 Fix timezone problem
1. Fix time zone problem
2. Better naming
2015-11-30 11:34:27 +08:00
dingwenchao fb8a05f02e Update 1.7.1.beta
1. Supports font customisation
2. Supports titleVerticalOffset and subtitleVerticalOffset
3. Remove SSLunarDate dependency, use NSCalendar and
NSCalendarIdentifierChinese instead
2015-11-29 19:00:56 +08:00
dingwenchao 16ad4a3ebb Code clean
Clean unused code
2015-11-17 15:34:59 +08:00
dingwenchao 5a7cdd7636 Update Example
1. Update Example
2. Update .gitignore
2015-11-17 15:27:57 +08:00
dingwenchao 18d9363dbf Huge update
1. Support NSCalendarIdentifier
2. Update Example
3. Fix some problem
2015-11-17 14:47:44 +08:00
dingwenchao 4a9c8e54cf Fix problem changing first weekday in fullscreen
1. Fix problem changing first weekday in fullscreen
2. Optimise scope transition
2015-11-11 10:19:09 +08:00
dingwenchao 906b92e324 Header shows 'middle of the week'
1. Header shows 'middle of the week' instead of ‘first day of week’
2. Fix blink while performing scope-transition
3. Update example with scope-transition sample code
2015-11-10 19:18:07 +08:00
WenchaoIOS 0446f9febf NSDateComponents sharedInstance
1. Make NSDateComponents in NSDate+FSExtension.h single instance, avoid
alloc every time using it. This makes performance better

2. Optimize other logic
2015-11-08 09:13:09 +08:00
WenchaoIOS 5c3560f640 Clean selectedDate while selectedCell is beyond screen
Clean selectedDate while selectedCell is beyond screen
2015-11-07 20:03:51 +08:00
WenchaoIOS 6784270167 Update Example
1. Update Example
2. Single instance NSDateFormatter
3. Fix performance issue
2015-11-07 09:08:56 +08:00
dingwenchao fad2baf155 Async dataSource fetching, not date calculation
Async dataSource fetching, not date calculation
2015-11-04 10:53:16 +08:00
dingwenchao 4280ff3a32 Update Swift Example
1. Update Swift Example
2. Fix problem #136
2015-11-03 18:04:33 +08:00
f33chobits e795f97bb7 Update Fullscreen mode
1. Better appearance and cell size for Fullscreen Example on iPad
2. Disable ‘fillColor actions’ for cell backgroundLayer
2015-11-02 23:47:16 +08:00
dingwenchao 4d07ec7da2 Fix warnings in demo project
1. Fix warnings in ‘SSLunarDate’
2. Update Readme
3. Fix warnings while orientation is changing in iPad
4. Bump version 1.6.3
2015-11-02 17:49:41 +08:00
f33chobits ec209a238b Optimize reloadData
Optimize reloadData
2015-11-01 14:20:05 +08:00
dingwenchao b19c6bca0d Version 1.6.2
1. Bump version 1.6.2
2. Update DelegateAppearance Example
3. Update iPad Example
2015-10-30 20:10:25 +08:00
f33chobits f8ba323341 Handle of details
1. File rearangement
2. Add color constance
3. Optimize size calculation function
4. No need to set clipToBounds any more
2015-10-27 22:35:55 +08:00
dingwenchao e27aba8c66 Size calculation for startup at WeekMode
Size calculation for startup at WeekMode
2015-10-26 16:36:41 +08:00
f33chobits 81a90d0272 Update Swift Example
1. Change type of FSCalendarCaseOptions from NS_ENUM to NS_OPTIONS. Or
it won’t be support by binary operator in Swift.
2. Update Swift Example
2015-10-25 13:43:42 +08:00
f33chobits 522488897d Decouple
1. Subclass UICollectionViewFlowLayout for decouple
2. Subclass UICollectionView, to erase annoying warning caused by
‘automaticallyAdjustsScrollViewInsets’ of UIViewController
2015-10-25 13:31:59 +08:00
f33chobits ff0dbdd698 Remove 'k' prefix for constance
Remove 'k' prefix for constance
2015-10-25 12:14:35 +08:00
f33chobits aedb3b9f1b Fix problem #124
1. If a cell is selected and the counterpart placeholder is tapped, the
delegate method should also be triggerred.

2. Prevent the counterpart placeholder to be selected if the calendar
is in vertical floating mode(pagingEnabled=NO & scrollEnabled=YES)

3. The behavior of (2) should be opened for discussion
2015-10-24 22:34:46 +08:00
dingwenchao f68ae0757f Better size adaption
1. Better size adaption. When the frame of FSCalendar is changing, the
textSize would be changed smoothly.
2. Nil out delegate of UICollectionView. To prevent unexpected calling
of delegate methods
2015-10-23 16:23:03 +08:00
dingwenchao 0104a03dc6 Add FSCalendarCaseOptions
1. Add FSCalendarCaseOptions
2. Deprecate useVeryShortWeekdaySymbols
2015-10-21 18:59:36 +08:00
f33chobits 8a8ebf212c Bump Version 1.6.1
1. Bump Version 1.6.1
2. Rearrange file orders
3. Rearrange deprecated attributes and methods
4. Rearrange enums and constance
5. Replace deprecated methods with new in example
2015-10-21 11:10:43 +08:00
f33chobits 341c668986 Add `Roll` Example
1. Add `Roll` Example
2. Add invalidateAppearance: method in `FSCalendarAppearance`
3. Support borderColors and different shapes for different dates
4. Fix `placeholder selection` problem
2015-10-18 11:39:13 +08:00
dingwenchao fcf2c31b62 deselectDate:
deselectDate:
2015-10-13 19:08:47 +08:00
dingwenchao 87870f80a6 Add scrollEnabled property
Add scrollEnabled property
2015-10-10 17:27:58 +08:00
f33chobits 5dadaf3dd3 Add cell-border support
Add cell-border support
2015-10-10 07:34:05 +08:00
f33chobits a59f29259a Fix deselect issue
Fix deselect issue
2015-10-07 14:02:58 +08:00
f33chobits c863aa6bb7 Add delegate methods
1. Add delegate methods
	1). `calendar:appearance:titleDefaultColorForDate:`
        2). `calendar:appearance:subtitleDefaultColorForDate:`

2. Version bump

3. Add delegate appearance example
2015-10-04 10:27:45 +08:00
f33chobits 105d97e83a Add FSCalendarDelegateAppearance
Add FSCalendarDelegateAppearance
2015-10-02 16:57:56 +08:00
f33chobits 535d07a996 Fix problem - When pagingEnabled is NO, selectDate: in viewDidLoad did not perform scrolling
1. Fix problem - When pagingEnabled is NO, selectDate: in viewDidLoad
did not perform scrolling
2. Update example for testing
2015-10-02 15:57:54 +08:00
f33chobits d28c923c36 Add test case for selectDate
1. Add test case for selectDate
2. Version bump
2015-10-01 09:14:42 +08:00
f33chobits 323ea42c6e Merge branch 'pagingEnable'
1. Add fullscreen calendar example
2. Fix xcode7 warning
3. Fix selectDate: problem
2015-09-27 19:53:30 +08:00
f33chobits e38574f79e Simulate event triggering of UICollectionView
1. Invocation of [selectDate:] or [selectDate:animated:] doesn’t
trigger delegate
2. Use delegate methods ‘calendar:shouldSelectDate:’ and
‘calendar:shouldDeselectDate:’ to control the accessiblity of touch
event.
3. Fix weekday issue #87
2015-09-16 22:55:02 +08:00
f33chobits c21b238346 Add delegate methods
Add delegate methods
1. calendar:shouldDeselectDate:
2. calendar:didDeselectDate:
2015-09-12 11:02:55 +08:00
dingwenchao 8bbc309c35 Multiple Selection
Use `allowsMultipleSelection` to enable this feature
2015-09-09 09:59:36 +08:00
f33chobits a6b91c443a Fix issues
1. Fix #74
2. Fix size problem for week mode
2015-09-04 21:24:27 +08:00
f33chobits 9dea135a54 Fix issues
1. Fix #72
2. Fix #73
3. Fix problem setting `scope`
2015-09-02 18:00:45 +08:00
f33chobits 4ca3d3b3a8 Add week-mode support
Add week-mode support
2015-08-29 22:12:13 +08:00
dingwenchao 6c6d9133dc Update Readme
Update Readme
Update podspec
2015-08-26 16:39:17 +08:00
dingwenchao a38d468678 Change framework target to is
Change framework target to ios8
2015-08-26 15:06:26 +08:00
dingwenchao 711232a391 Share scheme problem
Share scheme problem
2015-08-26 14:48:51 +08:00
dingwenchao e01843696a Not important
Not important
2015-08-26 14:30:46 +08:00
f33chobits 226573ed88 Update
Update
2015-08-24 23:45:03 +08:00
f33chobits 38dddd89e8 Share scheme
Share scheme
2015-08-24 22:59:54 +08:00
f33chobits 52b9dfff61 Initialize carthage support
Initialize carthage support
2015-08-23 23:57:48 +08:00
f33chobits 5ee73808af Add share option
Add share option
2015-08-23 23:09:08 +08:00
f33chobits 5ea14bf8e4 Merge branch 'Project-Restructure'
Move project file inside ‘Example’
2015-08-23 18:55:09 +08:00
f33chobits 62abb65567 Deprecate flow
1. FSCalendarFlow is deprecated, use FSCalendarScrollDirection instead

2. Fix a warning
2015-08-23 18:29:43 +08:00
f33chobits 09a39b198c Update info.plist
Update info.plist
2015-08-23 17:45:27 +08:00
f33chobits 9c971fe7cd Project restructure
Remove workspace structure for example project
2015-08-23 17:37:01 +08:00
f33chobits 7f04a5b181 Add support for `todaySelectionColor`
Custom selection color for today
2015-08-22 11:51:04 +08:00
dingwenchao 5a93ab0c4f Update pods
Update pods
2015-08-18 09:57:41 +08:00
dingwenchao b9ab395872 Fix issues
1. Add locale property
2. Fix issue #64
2015-08-18 09:55:55 +08:00