Latest 1.0.5
Homepage https://github.com/LumenSpark/LSWeekView
License MIT
Platforms ios 7.0, requires ARC
Authors

iOS week view control, similar to the one used in the iOS 7 Calendar app (day view).

The control is used in production in our Lumen Trails app, with over million downloads to date.

Screenshot

Usage

Run the example project to see it in action, or here’s the snippet you can add to your view controller’s viewDidLoad method:

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.weekView = [[LSWeekView alloc] initWithFrame:CGRectZero style:LSWeekViewStyleDefault];
    self.weekView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    self.weekView.calendar = [NSCalendar currentCalendar];
    self.weekView.selectedDate = [NSDate date];

    __weak typeof(self) weakSelf = self;
    self.weekView.didChangeSelectedDateBlock = ^(NSDate *selectedDate) 
    {
        [weakSelf doSomethingUseful];
    };

    [self.view addSubview:self.weekView];
}

Requirements

iOS 7, ARC

Installation

LSWeekView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LSWeekView"

Author

Christoph Zelazowski, Lumen Spark LLC, Seattle, WA [email protected]

License

LSWeekView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LSWeekView",
    "version": "1.0.5",
    "summary": "iOS week view control, similar to the one used in the iOS 7 Calendar app (day view).",
    "description": "A scrollable week view that allows the user to select a date. Designed for iOS 7 and 8. See the screenshot.n",
    "homepage": "https://github.com/LumenSpark/LSWeekView",
    "screenshots": "https://github.com/LumenSpark/LSWeekView/raw/master/Screenshot.png",
    "license": "MIT",
    "authors": {
        "Christoph Zelazowski": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LumenSpark/LSWeekView.git",
        "tag": "1.0.5"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes"
}

Pin It on Pinterest

Share This