Giter VIP home page Giter VIP logo

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?

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?

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?

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];

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?

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.