ruslanskorb / rsdayflow Goto Github PK
View Code? Open in Web Editor NEWiOS 7+ Calendar (Date Picker) with Infinite Scrolling.
License: MIT License
iOS 7+ Calendar (Date Picker) with Infinite Scrolling.
License: MIT License
Currently we can only have a full screen calendar view that allows vertical scrolling. I am looking forward to a calendar control that is not covering the full screen and allows horizontal scrolling. What parameters are to be tuned in order to achieve this? Do we have a support for this?
I have implemented the RSDayFlow Calendar, it is awesome. In my project need to specify the Start and end Date. Is that possible? Thanks in advance for any help you are able to provide.
When I press a date, the date is highlighted, but when I selected it programmatically, it isn't. Is there a way to highlight the selected date as if it had been pressed?
Thanks
//EDIT: Nevermind I just saw that you have already fixed that. Can be closed then.
Issue: The DatePicker crashes if you scroll far enough, while having a date selected:
Steps to Reproduce:
Steps to fix:
if(monthSection > 11) return nil;
if(indexPathForSelectedDate == nil) return;
Sorry that i did no pull request but since its such a small patch and i already have an open pull request. i figured i might as well do it this way.
Anyway keep up the good work!
Kind Regards Malte
Is there anyway to select 1st date of each month and today's date of current month? So that if I scroll up or down, they months's appropriate dates (1st for other months and today's date for current month) remain pre-selected. This is same behaviour as in iCalendar.
Hello. Your project is great but, what about landscape/portrait support? Do you think you can add it?
Hi,
how can i do for shows more than one green pin under the date?
How would I have the calendar scroll to a specific date? I tried to modify the scrollToToday method to have it accept a NSDate parameter but it wasn't performing as expected.
What would you suggest?
Thanks for sharing!
I'm getting a crash on iPhone 5. It's sending a message to a deallocated fromDate and toDate in numberOfSectionsInCollectionView:
I'm not sure why it's not crashing on iPhone 6. Making fromDate and toDate strong
variables seems to fix it but I'm not sure if that's the correct solutions (I assume they're weak assign for a reason).
Hi I seem to be having an issue with daylight savings. Where when selecting a date on the date picker view the date returned from
-(void)dateSelectionViewController:(RSDFDatePickerView *)view didSelectDate:(NSDate *)date
Is correct for dates up to the 29th of march i.e logging the NSDate returns for 29th of March returns 2015-03-29 00:00:00 +0000
While logging dates after (example the 30th of march) that returns 2015-03-29 23:00:00 +0000.
Was wondering did anyone have a similar problem?
Thanks.
hi,i've used your calendar to setting in it a local notification up each date!When i try to add or delete one it doesn't refresh the small green points.It does only when i close and reopen the app.I don't understand what's missing in viewdidappear.How can i do the refresh on the calendar without close and open the app?
Hi, can we know in code which month and year is appearing on screen? And can we scroll to particular month?
When specifying a date parameter of March 1, 2015 or later, Xcode crashes with an error stating "attempt to scroll to invalid index path: <NSIndexPath: 0xc000000000000316> {length = 2, path = 12 - 0}"
I like to use RSDayFlow.
I am calling scrollToDate
in viewDidLoad
. This is working with 0.8.0, but this is not working with 0.9.0. I think 757f250 is related to this behavior.
When I tried to call scrollToDate
in viewDidLayoutSubviews
, it is working. Is this correct behavior?
self.toDate is exclusive. When self.selectedDate is the same as self.toDate, there will be out of bounds crash in the collection view. The check is
[self.selectedDate compare:[self dateFromPickerDate:self.toDate]] != NSOrderedDescending
but it should be
[self.selectedDate compare:[self dateFromPickerDate:self.toDate]] == NSOrderedAscending
For me lack of UICollectionViewDataSource in declaration is a problem as I need to create a chessboard with day cells by changing their backgrounds and I need to subclass collectionView:cellForItemAtIndexPath: for that.
Can you please make the v 1.1.0 available through pods
Hi,i need to change NSDate * today with one date i want chose ( this date have format "dd-MM-yyy").
Because when i try to insert my date the green circle marker doesn't appear.
How can a do that?
The width is fixed at 320. It doesn't look good on iPhone 6 and 6 Plus.
Hello. Your project is great but, what about iPad support? DO you think you can add it?
Is there a method that allows a date to be specified (other than the current date) so I can use the today marker for things other than to mark the current date?
Thanks,
Jhay
Is there any convenient way to set the start and the end of the calendar view with, say months from today?
E.g. I want my calendar to show only 3 previous months and 6 future months. Is it possible in the current setup?
Hey @ruslanskorb, I am upgrading my app and recently while building it with XCode 7
I found the following issue
Ld /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator/pennyapp-ios.app/pennyapp-ios normal x86_64
cd /Users/harit/code/ios/pennyapp-ios
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator -L. -LGooglePlus.bundle -Lpennyapp-ios -Lpennyapp-ios.xcworkspace -Lpennyapp-iosTests -LPods -LGooglePlus.bundle/GPPCommonSharedResources.bundle -LGooglePlus.bundle/GPPShareboxSharedResources.bundle -Lpennyapp-ios/features -Lpennyapp-ios/src -Lpennyapp-ios/to -Lpennyapp-ios.xcworkspace/xcshareddata -Lpennyapp-ios.xcworkspace/xcuserdata -LPods/AFNetworking -LPods/Headers -LPods/Local\ Podspecs -LPods/MBProgressHUD -LPods/REFrostedViewController -LPods/RSDayFlow -LPods/SOCKit -LPods/SWTableViewCell -LPods/Target\ Support\ Files -LGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl.storyboardc -LGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl~ipad.storyboardc -Lpennyapp-ios/features/add -Lpennyapp-ios/features/budget -Lpennyapp-ios/features/login -Lpennyapp-ios/features/menu -Lpennyapp-ios/features/monthlySummary -Lpennyapp-ios/features/transaction -Lpennyapp-ios/src/api -Lpennyapp-ios/src/model -Lpennyapp-ios/src/utility -Lpennyapp-ios.xcworkspace/xcuserdata/harit.xcuserdatad -LPods/AFNetworking/AFNetworking -LPods/AFNetworking/UIKit+AFNetworking -LPods/Headers/Private -LPods/Headers/Public -LPods/REFrostedViewController/REFrostedViewController -LPods/RSDayFlow/RSDayFlow -LPods/SWTableViewCell/SWTableViewCell -LPods/Target\ Support\ Files/AFNetworking -LPods/Target\ Support\ Files/MBProgressHUD -LPods/Target\ Support\ Files/Pods -LPods/Target\ Support\ Files/REFrostedViewController -LPods/Target\ Support\ Files/RSDayFlow -LPods/Target\ Support\ Files/SWTableViewCell -Lpennyapp-ios/src/api/budgets -Lpennyapp-ios/src/api/categories -Lpennyapp-ios/src/api/data -Lpennyapp-ios/src/api/monthlySummary -Lpennyapp-ios/src/api/rest -Lpennyapp-ios/src/api/transactions -Lpennyapp-ios/src/model/budget -Lpennyapp-ios/src/model/category -Lpennyapp-ios/src/model/monthlySummary -Lpennyapp-ios/src/model/transaction -Lpennyapp-ios/src/model/transactions -LPods/Headers/Private/AFNetworking -LPods/Headers/Private/MBProgressHUD -LPods/Headers/Private/REFrostedViewController -LPods/Headers/Private/RSDayFlow -LPods/Headers/Private/SWTableViewCell -LPods/Headers/Public/AFNetworking -LPods/Headers/Public/MBProgressHUD -LPods/Headers/Public/REFrostedViewController -LPods/Headers/Public/RSDayFlow -LPods/Headers/Public/SWTableViewCell -LPods/SWTableViewCell/SWTableViewCell/PodFiles -L/Users/harit/code/ios/pennyapp-ios/Pods/build/Debug-iphoneos -F/Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator -F. -FGooglePlus.bundle -Fpennyapp-ios -Fpennyapp-ios.xcworkspace -Fpennyapp-iosTests -FPods -FGooglePlus.bundle/GPPCommonSharedResources.bundle -FGooglePlus.bundle/GPPShareboxSharedResources.bundle -Fpennyapp-ios/features -Fpennyapp-ios/src -Fpennyapp-ios/to -Fpennyapp-ios.xcworkspace/xcshareddata -Fpennyapp-ios.xcworkspace/xcuserdata -FPods/AFNetworking -FPods/Headers -FPods/Local\ Podspecs -FPods/MBProgressHUD -FPods/REFrostedViewController -FPods/RSDayFlow -FPods/SOCKit -FPods/SWTableViewCell -FPods/Target\ Support\ Files -FGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl.storyboardc -FGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl~ipad.storyboardc -Fpennyapp-ios/features/add -Fpennyapp-ios/features/budget -Fpennyapp-ios/features/login -Fpennyapp-ios/features/menu -Fpennyapp-ios/features/monthlySummary -Fpennyapp-ios/features/transaction -Fpennyapp-ios/src/api -Fpennyapp-ios/src/model -Fpennyapp-ios/src/utility -Fpennyapp-ios.xcworkspace/xcuserdata/harit.xcuserdatad -FPods/AFNetworking/AFNetworking -FPods/AFNetworking/UIKit+AFNetworking -FPods/Headers/Private -FPods/Headers/Public -FPods/REFrostedViewController/REFrostedViewController -FPods/RSDayFlow/RSDayFlow -FPods/SWTableViewCell/SWTableViewCell -FPods/Target\ Support\ Files/AFNetworking -FPods/Target\ Support\ Files/MBProgressHUD -FPods/Target\ Support\ Files/Pods -FPods/Target\ Support\ Files/REFrostedViewController -FPods/Target\ Support\ Files/RSDayFlow -FPods/Target\ Support\ Files/SWTableViewCell -Fpennyapp-ios/src/api/budgets -Fpennyapp-ios/src/api/categories -Fpennyapp-ios/src/api/data -Fpennyapp-ios/src/api/monthlySummary -Fpennyapp-ios/src/api/rest -Fpennyapp-ios/src/api/transactions -Fpennyapp-ios/src/model/budget -Fpennyapp-ios/src/model/category -Fpennyapp-ios/src/model/monthlySummary -Fpennyapp-ios/src/model/transaction -Fpennyapp-ios/src/model/transactions -FPods/Headers/Private/AFNetworking -FPods/Headers/Private/MBProgressHUD -FPods/Headers/Private/REFrostedViewController -FPods/Headers/Private/RSDayFlow -FPods/Headers/Private/SWTableViewCell -FPods/Headers/Public/AFNetworking -FPods/Headers/Public/MBProgressHUD -FPods/Headers/Public/REFrostedViewController -FPods/Headers/Public/RSDayFlow -FPods/Headers/Public/SWTableViewCell -FPods/SWTableViewCell/SWTableViewCell/PodFiles -filelist /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Intermediates/pennyapp-ios.build/Debug-iphonesimulator/pennyapp-ios.build/Objects-normal/x86_64/pennyapp-ios.LinkFileList -mios-simulator-version-min=7.1 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -lPods-RSDayFlow -lPods-MBProgressHUD -lPods-SWTableViewCell -lPods-REFrostedViewController -lPods-AFNetworking -framework QuartzCore -framework Foundation -framework CoreGraphics -framework GoogleOpenSource -framework UIKit -framework AddressBook -framework AssetsLibrary -framework CoreLocation -framework CoreMotion -framework CoreText -framework GooglePlus -framework Security -framework SystemConfiguration -framework MediaPlayer -lPods -Xlinker -dependency_info -Xlinker /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Intermediates/pennyapp-ios.build/Debug-iphonesimulator/pennyapp-ios.build/Objects-normal/x86_64/pennyapp-ios_dependency_info.dat -o /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator/pennyapp-ios.app/pennyapp-ios
ld: warning: directory not found for option '-L/Users/harit/code/ios/pennyapp-ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-RSDayFlow
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Podfile
has the following content
platform :ios, '7.0'
pod 'REFrostedViewController', '~> 2.4.7'
pod 'AFNetworking', '~> 2.4'
pod 'SWTableViewCell', '~> 0.3.6'
pod 'MBProgressHUD', '~> 0.8'
pod 'RSDayFlow'
I do pod install
and I open .xcworkspace
Do you think I am doing something wrong?
Hello, Ruslan! Thanks for the amazing mind-blowing control!
I have faced with some strange memory warning while testing the latest example project and on some of the earlier versions.
I was unable to trace them though. It would be nice if you could take a look.
Thanks again for the control!
Is it possible to add any custom content to a date cell ?
For example, I wanted to show a event name or rather a NSString/Text for certain dates in the calendar, can it be done ?
Hi @ruslanskorb , love RSDayFlow using it at work for our app.
I recently came across a situation were we needed multiple states for a date depending on condition. The way we achieved this is by passing in an NSNumber for the marked parameter instead of a BOOL
- (NSNumber *)datePickerView:(RSDFDatePickerView *)view shouldMarkDate:(NSDate *)date;
and then comparing these values in the (UIImage *)customCompleteMarkImage
method.
Was wondering how you'd feel to a pull request incorporating this type of method (but a bit better done) to add more customization points to the dates? And if you were agreeable with this what type of approach would you advise taking ?? ๐
Hi!
I've noticed that the datasource method is requested for every cell(day), and it seems to load the equivalent of 2 months upon first appearing on screen.
Only the RSDFDatePickerView object is passed to the datasource method, and I couldn't find a way to extract the current cell being built from that. Do you think it would be useful to pass not only the view, but also the date of the cell built built to the DataSource method?
It could allow us to make some just in tome decisions on if the date should be marked or not.
I can try my hand into implementing that if it is perceived to be generally useful.
cheers
Hi,
how to implement Lunar Date in your calendar?
Hi Ruslan,
I Have disabled the dates of some specific range. i.e From 1 year of today's date.
And some another dates selection like From selection of dates between Minimum dates and maximim dates.
I am facing the issue that if I am selecting the date 31st December then dates 28, 29 and 30 day's dates are getting color.
Also please find attached code for the same.
I have added this code in delegate method in RSDFDatePickerView.m
if ([self.dataSource respondsToSelector:@selector(isPreviousDateAvailable)])
{
NSString *strDate = [self.dataSource isPreviousDateAvailable];
NSString *strMaxDate = @"";
if ([self.dataSource respondsToSelector:@selector(isMaxDateAvailable)])
{
strMaxDate = [self.dataSource isMaxDateAvailable];
}
if ([strDate length]>0)
{
NSDateFormatter *formatter = nil;
formatter=[[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd"];
// NSString *date2String = [formatter stringFromDate:date];
NSDate *todaysDate = _today;
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *dateComponents = [[NSDateComponents alloc] init];
[dateComponents setYear:1];
NSDate *targetDate = [gregorian dateByAddingComponents:dateComponents toDate:todaysDate options:0];
NSDate *dateFromCalender = [formatter dateFromString:strDate];
if ([strMaxDate length]>0)
{
NSDateFormatter *formatter = nil;
formatter=[[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd"];
NSDate *dateMAX = [formatter dateFromString:strMaxDate];
if (([dateFromCalender compare:cellDate] == NSOrderedDescending) || ([dateMAX compare:cellDate] == NSOrderedAscending))
{
[cell.dateLabel setTextColor:[UIColor colorWithRed:200/255.0f green:200/255.0f blue:200/255.0f alpha:1.0f]];
}
}
else
{
if (([dateFromCalender compare:cellDate] == NSOrderedDescending))
{
// for greater then today's date
NSCalendar * mycalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSCalendarUnit units = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay;
NSDateComponents * myComponents = [mycalendar components:units fromDate:dateFromCalender];
NSInteger monthtargetDate =myComponents.month;
myComponents = [mycalendar components:units fromDate:cellDate];
NSInteger monthcellDate =myComponents.month;
NSLog(@"%ld--%ld",monthcellDate,monthtargetDate);
if (monthtargetDate == monthcellDate)
{
if (!([targetDate compare:cellDate] == NSOrderedAscending))
{
// for greater then selected date
[cell.dateLabel setTextColor:[UIColor colorWithRed:200/255.0f green:200/255.0f blue:200/255.0f alpha:1.0f]];
}
} else {
[cell.dateLabel setTextColor:[UIColor whiteColor]];
}
}
}
}
}
else
{
NSDate *todaysDate = _today;
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *dateComponents = [[NSDateComponents alloc] init];
[dateComponents setYear:1];
NSDate *targetDate = [gregorian dateByAddingComponents:dateComponents toDate:todaysDate options:0];
if (([_today compare:cellDate] == NSOrderedDescending) || ([targetDate compare:cellDate] == NSOrderedAscending))
{
[cell.dateLabel setTextColor:[UIColor colorWithRed:200/255.0f green:200/255.0f blue:200/255.0f alpha:1.0f]];
}
}
I have created 2 delegate methods to get the previous date and to get the maximum date.
Let me know how can I achieve this functionality.
Thanks in advance.
Vatsal.
One should be able to use [[RSDFDatePickerView alloc] init]
and then set the frame in - (void)viewDidLayoutSubviews
.
I'll probably take a stab at this in a couple of days.
Hi Ruslan,
I want to disable and change color of previous dates from the current date can you please help me to get this done.
Thanks in advance
I want to set default date to RSDFDatePickerView
instead of today. I tried 2 ways:
[RSDFDatePickerView selectDate]
in viewDidLoad
This is not working with iPhone 6 and it displays 8 days in week.
Because it sets 375px to width of self.collectionView.frame
in [RSDFDatePickerView layoutSubviews]
, but the width of collectionView is still 320 when [RSDFDatePickerView selectDate]
is called.
[RSDFDatePickerView selectDate]
in layoutSubviews
of sub class of RSDFDatePickerView after calling [super layoutSubviews]
This is not working and it displays this month.
Because [visibleCells count]
returns 0 in scrollToDate
after [RSDFDatePickerView layoutSubviews]
calls [self scrollToToday:NO]
.
Hi,
It's a great calendar. The only thing I need is the ability to change the direction of layout. As you know some languages such as Persian or Arabic are written from right to left. I can change the numbers and text to Persian using locale property on NSDateFormatter objects. I need the days to lay themselves out from right to left in each row; let's say 1 is in the right most location and 7 is in the left most and then 8 is in the right most in the 2nd row and so on. I hope you get what I mean and could help me how to do it. @ruslanskorb
using the same code as described in README.md
, I see following error in my code
Error:Build failed with 2 errors and 0 warnings in 1 sec
/Users/harith/code/XcodeProjects/pennyapp-ios/Pods/RSDayFlow/RSDayFlow/RSDFDatePickerView.m
Error:(125, 68) 'NSCalendarIdentifierGregorian' is unavailable: not available on iOS
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h
Included from:
(26) /Users/harith/code/XcodeProjects/pennyapp-ios/Pods/RSDayFlow/RSDayFlow/NSCalendar+RSDFAdditions.h
Note:(39, 36) declaration has been explicitly marked unavailable here
Included from:
(26) /Users/harith/code/XcodeProjects/pennyapp-ios/Pods/RSDayFlow/RSDayFlow/NSCalendar+RSDFAdditions.h
Note:(39, 36) declaration has been explicitly marked unavailable here
/Users/harith/code/XcodeProjects/pennyapp-ios/Pods/RSDayFlow/RSDayFlow/RSDFDatePickerDaysOfWeekView.m
Error:(84, 68) 'NSCalendarIdentifierGregorian' is unavailable: not available on iOS
The issue I'm having is that I can't customize the color of the day off label. I set breakpoints and the overridden getters do get called, but I don't see the color change. The colors are the correct values when called but they won't change in the date picker. Do you have any tips or maybe a better way of writing my overridden daysOfWeekView class? Here is my code below.
static UIColor *weekendColor;
static UIColor *weekdayColor;
+(void)setWeekendColor:(UIColor *)color {
@synchronized(self) {
weekendColor = color;
}
}
+(void)setWeekdayColor:(UIColor*)color {
@synchronized(self) {
weekdayColor = color;
}
}
-(UIColor *)dayOffOfWeekLabelTextColor {
return weekendColor;
}
-(UIColor *)dayOfWeekLabelTextColor {
return weekdayColor;
}
Hi,
I have set my local notification in the calendar with this code:
(NSArray *)myLocal
{
if (!_myLocal) {
NSCalendar *calendar = [NSCalendar currentCalendar];
unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit ;
NSArray *scheduledLocalNotifications = [[UIApplication sharedApplication] scheduledLocalNotifications];
NSMutableArray *myLocal = [[NSMutableArray alloc] initWithCapacity:[scheduledLocalNotifications count]];
for (UILocalNotification *localNotification in scheduledLocalNotifications) {
NSDateComponents *fireDateComponents = [calendar components:unitFlags fromDate:localNotification.fireDate];
NSDate *fireDate = [calendar dateFromComponents:fireDateComponents];
[myLocal addObject:fireDate];
}
_myLocal = [myLocal copy];
}
return _myLocal;
}
how can I post the text of the notification in the local alert view?
This is a super awesome library, thank you for making this.
If possible, it would be great to have a feature to change colors for selected mark, and date label. Currently they are all blue, but my app's main color is green so I want to adjust that.
there is funtion in this library
Hello,
i want to scroll like a paging in your calendar scroll to add paging like a when i am in month of Nov 2014 then i scroll up and then whole next Dec 2014 month show in view...
I want to show days start from Monday to Sunday !! Currently, in given demo project โ it starts with Sunday to Saturday. Is there any way to change it? Please help.
I really like this library, thank you for making it!
Can I start showing the first day from Monday instead of Sunday?
I want to show the Monday date in the left side.
First off all the Calendar Flow is pretty amazing and the UI modifications that can be made by anyone is awesome.
One minor issue that I found is the current day marker does not update automatically when its 12:00 am plus there is no method that can be called to refresh current day marker. The reloadData method only refreshes the markerData dots for the collectionView but not current day marker.
In the image that date has changed to 25th August on the device but this calendar within the app does not refresh the current day marker.
Delegate (didselect) returns date as per timezone.
lets say if i set timezone of iPhone to Boston , it will return date that is different if i set timezone for sydney.
I want the date will remains same and independent with TimeZone.
How to solve this ?
Currently RSDayFlow uses isPhone
and isPortraitInterfaceOrientation
to decide the form of weekday symbols. It mostly fine, but has problems when the view is in split view.
The best way is to use trait collection. However it requires iOS 8. Another workaround is to use the width of the view. Thoughts?
Found for February and March 2015, on NSLocale with locale identifier "pl".
Maybe the line
NSInteger dateItem = [self.calendar components:NSCalendarUnitDay fromDate:firstDayInMonth toDate:date options:0].day + (weekday - self.calendar.firstWeekday);
needs to be changed to
NSInteger dateItem = [self.calendar components:NSCalendarUnitDay fromDate:firstDayInMonth toDate:date options:0].day + (weekday >= self.calendar.firstWeekday ? weekday - self.calendar.firstWeekday : weekday - self.calendar.firstWeekday + 7);
as it seems to fix the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.