-
Notifications
You must be signed in to change notification settings - Fork 2
add readme #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add readme #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,41 @@ | ||
| # TZDatePicker | ||
|
|
||
| is a simple DatePicker that easy to use | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a good sentence and also not the reason I created this pod. I created it because I wanted a date picker with an optional year. Please change this into "This is a replacement for the UIDatePicker, which allows the year to be optional." |
||
|
|
||
| ## Example | ||
|
|
||
| To run the example project, clone the repo, and run `pod install` from the Example directory first. | ||
|
|
||
| ### the Example project | ||
|  | ||
|
|
||
|
|
||
| ## Requirements | ||
| Swift | ||
|
|
||
|
|
||
| ## Installation | ||
|
|
||
| SwiftTween is available through [CocoaPods](http://cocoapods.org). To install | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SwiftTeen? |
||
| it, simply add the following line to your Podfile: | ||
|
|
||
| ```ruby | ||
| pod 'TZDatePicker' | ||
| ``` | ||
|
|
||
| ## Example | ||
| ```swift | ||
| var dateComponents = DateComponents() | ||
| dateComponents.month = 7 | ||
| dateComponents.day = 20 | ||
|
|
||
| let datePicker = TZDatePicker(dateComponents: dateComponents) | ||
| datePicker.onValueChanged = { | ||
| dateComponents in | ||
|
|
||
| print( dateComponents.description ) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove empty line and change the print() into: |
||
|
|
||
| } | ||
|
|
||
| view.addSubview(datePicker) | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, thank you very much for writing the README for me!! Now for the review: why did you add this line? Please remove it.