Giter Site home page Giter Site logo

ruslanskorb / rsdayflow Goto Github PK

View Code? Open in Web Editor NEW
841.0 841.0 173.0 641 KB

iOS 7+ Calendar (Date Picker) with Infinite Scrolling.

License: MIT License

Objective-C 98.88% Ruby 0.47% Makefile 0.41% C 0.24%
calendar date datepicker design infinite-scroll scroll scrollview

rsdayflow's People

Contributors

aryaxt avatar b051 avatar dave-trudes avatar dependabot[bot] avatar evadne avatar lammertw avatar ndmeiri avatar pauliusvindzigelskis avatar ruslanskorb avatar sl33k avatar thonydam avatar viktorasl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rsdayflow's Issues

Support init without frame

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.

ld: library not found for -lPods-RSDayFlow

Hey @ruslanskorb, I am upgrading my app and recently while building it with XCode 7
screen shot 2016-01-02 at 2 02 13 pm

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?

Date highlight only when pressed?

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

Refresh calendar

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?

Lunar Date

Hi,
how to implement Lunar Date in your calendar?

Scrolling to a specific 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!

Sreevijitha

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.

Changing Layout Direction

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

scrollToMonth

there is funtion in this library

  • (void)scrollToDate:(NSDate *)date animated:(BOOL)animated
    this function is mainly used to scroll to current date, but either that date comes between the center of the view or top of the view according to the setting of at the end of above function
    Settings are
    UICollectionViewScrollPositionCenteredVertically
    UICollectionViewScrollPositionTop
    I want to scroll the view in a way the my current month should be at the top line under the weekdays row.
    Any workaround!!!!

indexPathForDate: returns wrong date (1 week too early) on months starting on sunday, with NSLocale that has firstWeekday on monday.

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.

Half Screen Calendar with Horizontal Scroll

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?

DataSource behavior

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

Issue With Daylight Savings

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.

Can it show the first day from Monday?

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.

Date Cell content

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 ?

Missing Bounds check on indexPathForDate:

//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:

  1. Fire up the Example app,
  2. Select a Date
  3. Then scroll up at least 1 year away from the selected date
  4. Crashes in '-(void)restoreSelection' with exception 'NSInternalConsistency Exception: Scroll to IndexPath {18-2} but CollectionView only has 12 Sections'

Steps to fix:

  1. Since your UICollectionView is designed in a way that there is always only one year of dates in the collection view at any time. perform a range check in 'indexPathForDate:' so that the section never exceeds 11(11 since the section start with 0). Like this:if(monthSection > 11) return nil;
  2. In the restore Selection method:
    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

Using the today marker for other dates

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

Wrong selection bounds check

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

Add multiple Events Same day and display multiple dots

sample
Your are doing a great job ,I need to know that Is there any provision to show multiple events by displaying more than one dots below the date and display events below when clicked on that particular date as in the image.
Thanks,
Rix

calendar scroll like paging view

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...

Use trait collection to decide which form of weekday symbols should be used

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.

screen shot 2015-06-15 at 11 03 04 am

The best way is to use trait collection. However it requires iOS 8. Another workaround is to use the width of the view. Thoughts?

Crash on iPhone 5

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).

Memory leaks

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!

Set default date

I want to set default date to RSDFDatePickerView instead of today. I tried 2 ways:

  1. Call [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.

  1. Call [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].

iPad support

Hello. Your project is great but, what about iPad support? DO you think you can add it?

Limit calendar start and end dates

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?

Selecting First Day of each month and today's date of current month

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.

Add Customization Hooks

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 ?? ๐Ÿ˜ƒ
image1

Want to hide the previous dates of Month December in Month of January.

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

  • (RSDFDatePickerDayCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath

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.

ios simulator screen shot 10-dec-2014 8 17 46 pm

Let me know how can I achieve this functionality.

Thanks in advance.
Vatsal.

Edit text alert view

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;
    }

pragma mark - RSDFDatePickerViewDataSource

  • (BOOL)datePickerView:(RSDFDatePickerView *)view shouldMarkDate:(NSDate *)date
    {
    return [self.myLocal containsObject:date];
    }
  • (BOOL)datePickerView:(RSDFDatePickerView *)view isCompletedAllTasksOnDate:(NSDate *)date
    {
    return YES;
    }

how can I post the text of the notification in the local alert view?

scrollToDate in viewDidLoad

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?

Insert personal data

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?

scrollToDate: method crashes

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}"

Landscape/portrait support

Hello. Your project is great but, what about landscape/portrait support? Do you think you can add it?

The current day marker does not update automatically when its 12:00 am.

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.

0526e10665bcd62d48d3e9abbbcede48d756cdaeded09c9fc39795f2869cf74b

Change colors of selected mark and date label

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.

Removing all borders?

I'm having a hard time removing the borders on the cells

  • I have a subclass if RSDFDatePickerView which overrides dayCellClass
  • I have a subclass of RSDFDatePickerDayCell and overrides dividerImageColor
    I'm still getting borders

screen shot 2015-11-27 at 4 21 56 pm

The end result I need is
screen shot 2015-11-27 at 4 25 21 pm

Any suggestions would be appreciated

'NSCalendarIdentifierGregorian' is unavailable: not available on iOS

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

-(UIColor *)dayOffOfWeekLabelTextColor

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;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.