Giter Club home page Giter Club logo

ffcalendar's Introduction

FFCalendar

A study of iOS Yearly, Monthly, Weekly and Daily Calendars.

Yearly Calendar for iOS

Monthly Calendar for iOS

Weekly Calendar for iOS

Daily Calendar for iOS

Limitations

  • For iPad only
  • Works on iOS 7 and above

Usage

Basic usage is implemented in FFCalendarViewController. First you should import FFCalendar.h in FFCalendarViewController. Then, subclass FFYearCalendarView, FFMonthCalendarView, FFWeekCalendarView and FFDayCalendarView. Also set the respective protocols, they will always provide the last modified dictionary (which I called dictEvents), and hence, they will help to update the others calendars.

The dictEvents is formed by events (FFEvent) and their dates. Inside FFEvent you will find:

  • stringCustomerName: the name of the customer
  • dateDay: informs the day, month and year when the event will happen
  • dateTimeBegin: the hour and minute when the event will begin
  • dateTimeEnd: the hour and minute when the event will end
  • arrayWithGuests: an array with all selected guests.

On the other hand, if you enjoyed the FFCalendarViewController's view as it is, you can just add it as a single subview, like following:

- (void)displayFFCalendar {

    FFCalendarViewController *calendarVc = [FFCalendarViewController new];
    [calendarVc setProtocol:self];
    [calendarVc setArrayWithEvents:[self arrayWithEvents]];
    
    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:calendarVc];
    navigationController.view.frame = CGRectMake(0., 0., self.view.frame.size.width, self.view.frame.size.height);

    [self addChildViewController:navigationController];
    [self.view addSubview:navigationController.view];
    [navigationController didMoveToParentViewController:self];
}

- (NSMutableArray *)arrayWithEvents {

    FFEvent *event1 = [FFEvent new];
    [event1 setStringCustomerName: @"Customer A"];
    [event1 setNumCustomerID:@1];
    [event1 setDateDay:[NSDate dateWithYear:[NSDate componentsOfCurrentDate].year month:[NSDate componentsOfCurrentDate].month day:[NSDate componentsOfCurrentDate].day]];
    [event1 setDateTimeBegin:[NSDate dateWithHour:10 min:00]];
    [event1 setDateTimeEnd:[NSDate dateWithHour:15 min:13]];
    [event1 setArrayWithGuests:[NSMutableArray arrayWithArray:@[@[@111, @"Guest 2", @"[email protected]"], @[@111, @"Guest 4", @"[email protected]"], @[@111, @"Guest 5", @"[email protected]"], @[@111, @"Guest 7", @"[email protected]"]]]];
    
    return [NSMutableArray arrayWithArray:@[event1];
}

License

FFCalendar is available under the MIT license.

Contact

Contact me at: http://fernandasportfolio.tumblr.com/contato

ffcalendar's People

Contributors

fggeraissate 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffcalendar's Issues

Xcode 5.0.2 compactibility issue

Hi

I tried out this project in xcode 5.0 its running fine but from xcode 5.0.2 its showing error , Could you please do needfull

Error:
clang: error: no such file or directory: '/Users/macuser/Documents/FFCalendar-master/FFCalender/FFCalender-Prefix.pch'
clang: error: no input files
Command /Applications/XcodeFolder/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

XCode 7 - UICollectionViewFlowLayout Issue

Logging only once for UICollectionViewFlowLayout cache mismatched frame
UICollectionViewFlowLayout has cached frame mismatch for index path NSIndexPath: {length = 2, path = 0 - 3} - cached value: {{439, 2}, {144, 120}}; expected value: {{440, 2}, {144, 120}}
This is likely occurring because the flow layout subclass FFMonthCollectionViewFlowLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them

I guess which results in missing Dates from Month Collection View

missing dates

Two events at same time withour overlapping

Hi
First of all thanks for such an amazing calender library..i am using it in my app and tweeked it according to the need...just 2 queries

1)Is it possible to create events at same time so that it doesnt overlap on each other (in day and week view)..like native calender beahaviour

2)IOS 8 SUPPORT i am facing some problem for porting it to ios 8

Thanks in Advance,
cheers

event Across the day

current the event ,only support the same day ,how to create event
eg:
from 5.28--5.30,the event does not in the same day

Swift example

i am trying to use your lib in my swift app while building. Have you already ported it in swift or have some example of calling from swift app.

weekOfYear Issue in last week and first week of year

Hi,
Thanks for sharing good library. It is really of good use. The small issue I'm facing is. I want to show last week of 2015 that contain 1,2,3 Jan as 53rd Week. And from 4th Jan 2016, It should show as first week. As my app considers, Week starts with Monday and first monday in 2016 is on 4th Jan. So that week should be considered as first week.
Currently It is showing this one as 53rd week as 1st week and from 4th Jan, It is showing second week.
Can you please help?

Date Issue - Dec 2017

Hi Guys,
Please help us out here. The date are missing for certain month. Say for Dec 2017, In month View, the Calendar doesn't show up the 31st December date in the tile. We have certain issues like this and please help us on same.

Does not scroll down sometimes in the monthly calendar

Hi

I am using this control in my app working good. But sometimes I face a problem when I scroll down in the monthly calendar. I am using the only month calendar for the app.
Please let me know what could be the solution.
Thanks

Orientation issue

Hi,

Thank you for the niche work. Here is an issue I would like to report. When you tap on the Top Right "+" button to add an event, a PopOver appears. During this state, if we rotate the iPad to other orientation, there happens to be awkward results. Either the PopOver moves out of screen or it moves under the Week Button.

Have a look here.
Initial orientation : Landscape - > Then moving to Portrait.
landscape-portrait

Initial Orientation : Portrait -> Then moving to Landscape
portrait-lansdcape

FFCalendar Between two Dates only

First, thank you for amazing component
secondly , i need to customise FFCalednar to view weeks between two dates, any help to achieve it.
Thanks..

Action on Selected date in Year View

I want to find a selected date on selection of date from year view screen.I want to perform actions on that because right now I am not getting that selected date.
Thanks in advance

Selected Date-From YearView

How we find selected date from year view screen?
Means i want to find selected date from year view screen? So how i can achieve that? Please reply the solution as soon as possible.

FFCalendar functionality issue in iPhone 6

Hi

This tool is really nice and working fine. Thanks for this.
I am using only the month calendar view in my app.

But I am facing a issue regarding to the functionality. When I test it on the Simulator (iOS7,iOS8, iOs9) working fine.
On real device iPhone5 it is working fine.

But when we test on the iPhone 6 it’s showing the month series wrong when we scroll up and down. I am using it with the auto layout.
And We have added the functionality to drag and drop events on the calendar dates.

It is also working fine in described devices and simulators when we drag and drop object. But we find issue on the iPhone 6, It doesn’t show the dropped object on the date.

Please let me know what could be the possible solution for it. Because we have implemented FFCalendar in our app and going to publish our app.

Please reply us as soon as possible.

Thanks

iOS Developer
The Iron Network

Implement iPhone view

Feel free to close this if you have no plans to create an iPhone view (or maybe I'll tackle it myself if the time comes up?). Just curious on thoughts here, because this seems awesome, but obviously universal would be much more useful. But undoubtably it's your project, so if you have no use, completely understand ditching it.

Dates are missing in some months in month view

In month view dates are missing in some months. Can any help me how to fix
screen shot 2018-10-03 at 1 06 11 pm
that issue

In the above screenshot, you can see the issues, in October 2018 dates like 23, 24, 25, 26, 28, 29, 30 dates are missing. Please help me how to fix that

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.