kamilpowalowski/HSDatePickerViewController
소개
Customizable iOS view controller in Mailbox app style for picking date and time. https://twitter.com/kamilpowalowski
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHSDatePickerViewController
HSDatePickerViewController is an iOS ViewController for date and time picking, based on awesome look&feel of Dropbox Mailbox application with some customization options.

Usage
Use CocoaPods
pod 'HSDatePickerViewController', '~> 1.0'
or add sources from HSDatePickerViewControllerDemo/HSDatePickerViewController subfolder to your project.
Import main header:
#import "HSDatePickerViewController.h"
When needed, create HSDatePickerViewController object:
HSDatePickerViewController *hsdpvc = [[HSDatePickerViewController alloc] init];
present it as modal view controller:
[self presentViewController:hsdpvc animated:YES completion:nil];
To get returning values, you must conform to the protocol HSDatePickerViewControllerDelegate:
@protocol HSDatePickerViewControllerDelegate <NSObject>
- (void)hsDatePickerPickedDate:(NSDate *)date;
@optional
- (void)hsDatePickerWillDismissWithQuitMethod:(HSDatePickerQuitMethod)method;
- (void)hsDatePickerDidDismissWithQuitMethod:(HSDatePickerQuitMethod)method;
@end
Also, before presenting HSDatePickerViewController, you can change default values of some properties (check HSDatePickerViewController.h file for longer description):
@property (nonatomic, assign, getter=shouldDismissOnCancelTouch) BOOL dismissOnCancelTouch;
@property (nonatomic, assign) HSDatePickerMinutesStep minuteStep;
@property (nonatomic, strong) UIColor *mainColor;
@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSDate *minDate;
@property (nonatomic, strong) NSDate *maxDate;
@property (nonatomic, strong) NSDateFormatter *dateFormatter;
@property (nonatomic, strong) NSDateFormatter *monthAndYearLabelDateFormater;
@property (nonatomic, strong) NSString *confirmButtonTitle;
@property (nonatomic, strong) NSString *backButtonTitle;
Licence (MIT)
Copyright (c) 2015 Kamil Powałowski @kamilpowalowski
For whole licence see LICENCE file.
관련 프로젝트 살펴보기
불러오는 중…