Giter VIP home page Giter VIP logo

didatepicker's Introduction

DIDatepicker

!!! This version is no longer supported. A new version in my new repo

Yet another datepicker for iOS.

demo

Sample usage is available in the DIViewController.

Requirements

DIDatepicker uses ARC and requires iOS 7.0+. Works for iPhone and iPad.

Installation

CocoaPods

Add the following line to your Podfile:

pod 'DIDatepicker'

Then run the following in the same directory as your Podfile:

pod install

Manual

Copy the folder Sources/ to your project.

License

Copyright (c) 2014 Dmitry Ivanenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

didatepicker's People

Contributors

awgeorge avatar bryant1410 avatar noxt avatar ronnyandre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

didatepicker's Issues

Version in cocoapods outdated

The version on here with the date initialization helpers has not been tagged with a version, so the only way to get it is to manually pull in the files. Can you please tag a new version and update the podspec to point to v0.2?

Fill with custom date range

Is it possible to fill the datepicker with a custom date range?

For instance, I would like to present a schedule for an event that lasts for 5 days (in a row).

DIDatepicker can't be alloc and init

if using code like this,there's just a blank white area on the view. What's wrong?
datepicker = [[DIDatepicker alloc]init];
...
...
[self.view addSubView:datepicker];

Any demos in Swift?

Hi, I added Sources to my Swift project, created bridge header. So far I failed to make DIDatepicker work, in the best case it just shows bottom red line but no dates or anything.

I had a view and view controller (UIViewController) which imports UIKit and DIDatepicker. If I use the following code below in viewDidLoad(), I get this:
view screenshot

Here is a demo code:

let testFrame : CGRect = CGRectMake(0,200,320,100)
var testView : DIDatepickerDateView = DIDatepickerDateView(frame: testFrame)
testView.backgroundColor = UIColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
testView.alpha=0.5
self.view.addSubview(testView)

I tried later to add empty view in View controller and assign Class DIDatepicker from GUI. I made outlet for that view and tried to set date:

@IBOutlet weak var datepicker: DIDatepicker!
var todaysDate:NSDate = NSDate()
datepicker.selectDate(todaysDate)

But nothing happens (view stays blank). I also noticed that I can access following methods defined in DIDatepicker.h:

  • selectDate
  • selectDateAtIndex

But I cannot access for some reason to other ones from the list:

  • fillDatesFromDate
  • fillCurrentWeek
  • fillCurrentMonth
  • fillCurrentYear

Can you provide please some minimal Swift demo as a good starting point on how to use DIDatepicker? Does anyone have a problem with DIDatepicker?
I use XCode 6.4, Swift 1.2, OSX Yosemite 10.10.4

Many thanks!

Set date to initially unselected.

Is there a way to set the date picker as unselected initially so that there is no indicator under the first date in the collection view until a date is selected?

reloadData

Not sure if this is an issue. I am implementing DIDDatepicker in my own TableViewController.
I created a method updateDateSelected that receives the event. In this method i call tableview reloadData method which result in the table is reloaded infinitely causing the date picker to not respond to touches. How do i overcome this?

Sunday looks weird

captura de tela 2014-10-21 as 15 48 44

I've noticed that for some reason Sundays never get their month to be displayed. Why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.