sonysum / RVCalendarWeekView

Simple but powerful Calendar Week View for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RVCalendarWeekView

Simple but powerful Calendar Week View for iOS With dragable events

Following the work from MSCollectionView I created this library simplifing its usage

Installation

Pod pending yet...

Usage

you can now use storyboard to create a simple UIView extending the RVCalendarView and then just do this:

    -(void)viewDidLoad{
        MSEvent* event1 = [AKEvent make:NSDate.now
        title:@"Title"
        location:@"Central perk"];

        MSEvent* event2 = [AKEvent make:[NSDate.now addMinutes:10]
        duration:60*3
        title:@"Title 2"
        location:@"Central perk"];

        _weekView.events = @[event1,event2];        
    }

Easy right?

Drag and drop

You can get a dragable events calendar using RVWeekViewDragable instead.

it will fire the following functions on your dragDelegate

-(BOOL)MSWeekView:(MSWeekView*)weekView canMoveEvent:(MSEvent*)event to:(NSDate*)date;

-(void)MSWeekView:(MSWeekView*)weekView event:(MSEvent*)event moved:(NSDate*)date;

Options

You can even customeize some options

_weekView.weekFlowLayout.show24Hours    = YES; //Show All hours or just the min to cover all events
_weekView.daysToShowOnScreen            = 7;   //How many days visible at the same time
_weekView.daysToShow                    = 31;  //How many days to display (Ininite scroll feature pending)

drag and drop

iPhone

iPad

About

Simple but powerful Calendar Week View for iOS


Languages

Language:Objective-C 99.9%Language:Ruby 0.1%