MiniDateView 0.2.0

MiniDateView 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2016

Maintained by i_82.



  • By
  • i_82

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.