Giter VIP home page Giter VIP logo

mncalendarview's People

Contributors

min avatar vtagle 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

mncalendarview's Issues

Week Display

Should have a option like displaying particular week i.e week display.

Selecting frame returns wrong day.

I've logged the date when I press a cell, but it returns the day before the selected date. Why is this, and how can i fix it?

Fetching it with
- (void)calendarView:(MNCalendarView *)calendarView didSelectDate:(NSDate *)date{
NSLog(@"did select date %@",date);

}

skjermbilde 2013-09-16 kl 10 04 27

On select date is shows previous date

Hi
Team,

First I want to thanking you for customise the calendarView,
I have small issue with didSelectDate it show previous date. I check my system time and Nslog output which is not matching [Gregorian Time].

Multiple dates selection

How can i achieve multiple dates selection in this API.
My requirement is when user selects two dates then i have to change the date cells color in b/w these 2 selected dates.
can i achieve my requirement using this API.

Hide duplicate week

Is there any way to hide the week of duplicate day cells between each month? This would match the iOS calendar app.

MNCalendarView screenshot
iOS Calendar App screenshot

MNCalendarViewDayCell Enhancement

I have implemented a tableview in the MNCalendarViewDayCell in order to view custom events for specific day if the device is an iPad. I know that this library is based off UICollectionViews, so I was wondering maybe in the future we could get a proper implementation of a feature like this.

Thanks,
John

iOS 6 Rotation issue

As of now, I don't create a new calendar for rotation, I invalidate the layout. But the issue is when the device is rotated, random cells have a hidden date label. When you select on the cell, the label reappears but then other cell labels disappear.

What can cause this behavior?

Setting fromDate and toDate has no effect

Here is my code after initializing MNCaldendarView:

NSDate *todayDate = [NSDate date];
NSDateComponents *dateComponents = [[NSDateComponents alloc] init];
[dateComponents setMonth:+6];
NSDate *afterSixMonths = [[NSCalendar currentCalendar] dateByAddingComponents:dateComponents toDate:todayDate options:0];

self.calendarView.fromDate = [NSDate date];
self.calendarView.toDate = afterSixMonths;

As you can see, I am basically wanting to have the calendar only show the next 6 months instead of the next 4 years.

The calendar view seems to basically be ignoring this.

If I go into the commonInit method in MNCalendarView.m and manually change the code from this:

self.toDate     = [self.fromDate dateByAddingTimeInterval:MN_YEAR * 4];

to:

self.toDate     = [self.fromDate dateByAddingTimeInterval:MN_YEAR * 0.5]; //<-------- Multiplied by 0.5 to get 6 months

I can scroll it up so that it shows the full final 6 month, but then it snaps back into place for the month above it. I am assuming it just isn't recognizing that this is now the new "last month". I also can't find the area where it detects the last month, so I am searching for that still.

Any insight would be great, thanks!

Gregorian December 2013 Issue

In December 2013 Gregorian display, the dates 1-4 are fine, but 5-11 are unelectable and grayed out as if they belong to a previous month. This month shouldn't show any dates from previous month. That may be the bug?

two adjacent columns and months appear merged in many Islamic calendar months

there is a weird problem in many islamic calendar months where two adjacent columns and two adjacent months both appear merged together, see the screenshot from iOS 7 simulator:

screenshot2

can anybody determine the reason behind this faulty behavior ? and how to solve it ?

p.s. problem also happens in iOS 6 simulator.

Scrolling the Calendar.collectionView not working

I want to scroll calendar.collectionView from the program, but nothing work :(
This is code what I used for scrolling. Where is mistake:


    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
    [calendarView.collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionBottom];

Selected multiple date and specify month range?

hi, I'm using rubymotion and using the cocoapod.

I want to ask

  1. is that possible to select multiple dates.
  2. Display only the specify month range ? lets say Now and 2 month later.
  3. How to disable specific dates??

Thanks !! hope to hear you all soon...

Memory leaks

Hi,
Has anyone watched as the app uses memory while scrolling?

App crashes when calling NSDate Collection methods

The application launched from XCode 5 used to crash on every NSDate collection method.
The log of crash is :"[__NSDate mn_beginningOfDay:]: unrecognized selector sent to instance"
Is it related to project integration on XCode 5?

Setting custom classes for cells has no effect

Given my code looks like this:

self.mnCalendarView.dayCellClass = [CAMNCalendarViewCell class];

And when this mnCalendarView property is assigned through IB, then the dayCellClass property setting has no effect, because internally, the collection view has the classes already registered. I fixed this by adding an additional setter within MNCalendarView as follows:

- (void)setDayCellClass:(Class)dayCellClass {
    _dayCellClass = dayCellClass;

    [_collectionView registerClass:self.dayCellClass
        forCellWithReuseIdentifier:MNCalendarViewDayCellIdentifier];
}

This simply overwrites the current cell class setting for the collection view.

Still thinking of a better way, but perhaps I will go ahead and submit a PR (for this and the other 2 getters)? Happy to get opinions on this.

April 2017

Have anyone found a way of plugging the bottom right corner?

img_0009

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.