Latest 0.2.0
Homepage https://github.com/Lessica/MiniDateView
License MIT
Platforms ios 9.0, requires ARC
Authors

CI Status
Version
License
Platform

A simple Chinese style mini date view.

Screenshot

Preview

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Create

  // Its width and height cannot be adjusted.
  MiniDateView *dateView = [[MiniDateView alloc] initWithFrame:CGRectMake(100, 100, 0, 0)];
  dateView.tintColor = [UIColor grayColor];
  self.dateView = dateView;
  [self.view addSubview:dateView];

Redraw

  // Refresh date
  self.dateView.date = [[NSDate date] dateByAddingTimeInterval:86400];
  [self.dateView setNeedsDisplay];

Requirements

  • iOS SDK 9.0+
  • Xcode
  • Cocoapods
  • This spec needs ARC.

Installation

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

pod "MiniDateView"

Author

i_82, [email protected]

License

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

Latest podspec

{
    "name": "MiniDateView",
    "version": "0.2.0",
    "summary": "A mini date view that presents day-of-month, weekday, and month-of-year.",
    "homepage": "https://github.com/Lessica/MiniDateView",
    "license": "MIT",
    "authors": {
        "i_82": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Lessica/MiniDateView.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resources": "Pod/Assets/MiniDateView.bundle"
}

Pin It on Pinterest

Share This