GithubHelp home page GithubHelp logo

daysquare's Introduction

NO LONGER MAINTAINED

Daysquare

An elegant calendar control for iOS.

Version License Platform Carthage compatible

Introduction

Get bored with native silly UIDatePicker? You may have a try on this control. Instead of showing you an awkward wheel, it just presents as a intuitive full-size calendar with a lot of preference properties that you can change.

Screencast

Overview

Set the date

Bold current month

Features

  • Highly customizable.
  • Navigating between arbitrary dates.
  • Automatically adjust view to fit variety sizes.

[Changelog - 6.14]

  • Add: user's calendar events displaying supports.

[Changelog - 6.15]

  • Add: single row mode supports, see singleRowMode property.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Daysquare is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Daysquare', :git => 'https://github.com/unixzii/Daysquare.git'

Also, if you prefer to use Carthage, you can add the following line to your Cartfile:

github "unixzii/Daysquare"

Guide

Try the demo project, it's very easy to use. Daysquare follows the target-action pattern, just like the native UIDatePicker class.

PAY ATTENTION
After changing any appearance property, you have the responsibility to call reloadViewAnimated: method to update the view.

Enjoy it!!

License

The project is available under the MIT license. See the LICENSE file for more info.

daysquare's People

Contributors

rakuyomo avatar unixzii 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

daysquare's Issues

Disable past dates

Hi,

Thanks for the library. Its very useful.

I want to disable past dates .
Please let me how to solve this issue.

Regards,
Suvarna Ratna A

上一个月份没有消失

self.navigationBar.textLabel.text = self.navigationBarTitle; 设置标题的时候,这个月份怎么一直留着。导致切换月份的时候显示两个重叠的月份,这个怎么弄啊

第一行的日期

为什么灰色的上个月的最后几天日期从左到右是减小的,例如31、30、29,而不是29、30、31、1、2、3,这样才是对的吗

How to solve the error Invalid Month 0

{
super.viewDidLoad()

    calendarFromDateArr2 =  ["2017-11-05T07:41:00", "2017-10-30T11:23:00", "2017-10-30T11:48:00", "2017-11-10T00:00:00", "2017-11-13T19:43:00", "2017-12-01T00:00:00", "2017-12-31T00:00:00"]
    
    
    for calendardate in calendarFromDateArr2
    
    {
        
        
        print("date :\(calendardate)")
        
        let dateFormatter = DateFormatter()
        
        dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
        
        let date = dateFormatter.date(from: calendardate)
        
        print(date)
        
        
        self.calendarView.selectedDate = date
    
        
        //return
        
        
    }
    
    
}

在iOS8上会闪退

在iOS8上运行闪退,报错信息为
image
,主要原因是weekHeaderView使用的是从iOS9才有的UIStackView,所以在低于iOS9的设备上运行是,创建的这个weekHeaderView是nil,导致

[self addConstraint:[NSLayoutConstraint constraintWithItem:self.weekHeaderView
                                                     attribute:NSLayoutAttributeTop
                                                     relatedBy:NSLayoutRelationEqual
                                                        toItem:self.navigationBar
                                                     attribute:NSLayoutAttributeBottom
                                                    multiplier:1.0
                                                      constant:0]];

中的self.weekHeaderView为nil。建议换成FDStackView,可以支持到6+

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.