Skip to content

sonysum/RVCalendarWeekView

 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 99.9%
  • Ruby 0.1%