tjeerdintveen / vurig-calendar Goto Github PK
View Code? Open in Web Editor NEWEasy to use, simple, clean calendar view
Easy to use, simple, clean calendar view
I still need to dive in to see why this is happening (whether it's my implementation or just Vurig) but at the moment, during March, the returned NSDate
from the dateSelected
method is correct. But when you move forward into April and beyond, the returned NSDate
is a day behind the correct value. It appears correctly on the view, but not through the method.
Can anyone else replicate this?
Edit :
I'm confused, I use a fork of your project on cocoapod available here :
https://github.com/KiranPanesar/VRGCalendarView
So, the problem is on the fork project. Sorry
You don't update your method of delegate in your call :
if ([delegate respondsToSelector:@selector(calendarView:switchedToMonth:targetHeight: animated:)])
It should be :
if ([delegate respondsToSelector:@selector(calendarView:switchedToMonth:year:numOfDays:targetHeight:animated:)])
Thanks for your work
Hi TJ,
Great calendar! it works so cleanly, love it,
Hey Im just having a small error when trying to place it in a project (target 5.0),
Getting this error,
ld: symbol(s) not found for architecture i386
Is there any framework or dependencies I should be linking to the project to make it work?
Kind regards
Taulal
Is it possible to have it with Voice Over support?
Kal and Tapku Calendar both have that support. But Vurig-Calendar fits better our purposes.
¿Any ideas?
Is it possible to populate and list events?
Is there ways to put this cal with a tableview like the iPhone's cal? You're example is nice but don't see how to make with tableview
thanks
Suport ios 7 ?
I commented this line [weekdays moveObjectFromIndex:0 toIndex:6]; so it shows correct weekdays -from sunday to monday but it shows not correct days right now. Please advise
If i have several dates to mark in a month, it marks only the last date!!?? Please Help
here is the code:
-(void)calendarView:(VRGCalendarView *)calendarView switchedToMonth:(int)month targetHeight:(float)targetHeight animated:(BOOL)animated {
NSArray *test = [NSArray arrayWithObjects:@"2013-07-22",@"2013-07-23",@"2013-08-09",nil];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd"];
NSCalendar *gregorian = [[NSCalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar];
for (int i=0; i<test.count;i++){
NSDate *mydate = [dateFormat dateFromString:[test objectAtIndex:i]];
NSDateComponents *components = [gregorian components:NSMonthCalendarUnit fromDate:mydate];
if (month == components.month) {
NSArray *date = [NSArray arrayWithObjects:mydate, nil];
NSArray *color = [NSArray arrayWithObjects:[UIColor redColor],nil];
[calendarView markDates:date withColors:color];
}
}
}
Can I use these codes with ARC projects?
Hi!
I wonder if it is possible to show only weekdays from monday to friday in the calendar.
Great project! Would be good to have some additions to the Readme with a quick rundown on modifying the look/style of the calendar. Great work so far!
Great project! I like it
I select 2012-12-15 ,but output Selected date = 2012-12-14 16:00:00 +0000, why?
can you help me?
It is possible to draw markings with characters?
Hi
Is this great calendar open source? and in that case what license?
Regards Nils
The main delegate method for populating the calendar view doesn't provide the current year.
This is an easy fix by adding just adding the "year" parameter to the protocol method and then passing [currentMonth year] as the value when calling it in VRGCalendarView.m
If let say, I develop an app for booking using the calendar, and the app only allow booking from today until next 2 months. Is it possible to disable dates smaller than today and dates greater than 2 months later? Any helps would be really appreciate!
I put a calendarView in a first cell of UITableView, There are others in the second cell.
I don't know how to change the height of first cell .What can I code At the method of " ...heightForRowAtIndexPath " ?
how can i get Two Dates When I select Them it highLight all the dates between these two Dates And Perform An Action
How can i set a specific month via code?
Hi, first of all, thanks for this amazing calendar. I would like to ask you, if is possible to insert an image inside of a day cell?
Thanks in advance!
Hi,
This is a great project, but when I select specific date, the console show the previous day.
I saw the previous threat talked about this issue as well, but there is no solution and the treat is closed. So, please giving a fix to this point.
Thanks,
I need to show the attendance of users in the calendar view. So need extra text ('Yes' & 'No') with the day in each cell to mark. Is it possible that after selecting the date, the color and text can change?
Hello! Nice calendar!
How can I change the calendar's language.
I'm modifying the NSDate+convenience.m but without success.
I added this line in the methods:
[gregorian setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"pt_BR"]];
Thanks!
Hi, I'm using your calendar in my project, great job!
I'd like to ask you for a suggestion in order to localize it (to get the month and the week days localized in the current locale).
Many thanks,
Salva
hii i have integrated this calender in my project can any one tell me its posible to mark only future dates?
This method only gives calender month how can i get calender year and day? how to do that? plz tell me..
How do you change the background color of the view? I'm trying to replace the white color under the calendar with a clear color so that the months that have six rows can still be seen when selected, but without having a white space under the months that have five rows. The background color I have is different from what the calendar is.
Hello sir,
How to add multiple selection functionality in calendar instead of select only one date in calendar.
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.