• Stars
    star
    1,926
  • Rank 24,056 (Top 0.5 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • Created almost 11 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple Calendar / Date Picker for iOS using UICollectionView

PDTSimpleCalendar

Pod version Carthage compatible Build Status

PDTSimpleCalendar is a very simple calendar/date picker component for your iOS apps based on UICollectionView.

Default Scrolling Hebrew

###Upgrade Note

You should read the Release Notes when you upgrade to a newer version.

##Install

###Cocoapods

in your Podfile just add:

pod 'PDTSimpleCalendar', '~> 0.9.1'

then run pod install

And finally in your project import #import <PDTSimpleCalendar/PDTSimpleCalendar.h>

###Carthage

In your Cartfile simply add:

github "jivesoftware/PDTSimpleCalendar" ~> 0.9.1

run carthage update

Finally you need to add the built framework to your project. For more information about Carthage : github.com/Carthage/Carthage

Warning: Carthage uses dynamic framework and will only work if your app targets iOS 8.0 or later.

###Old-School If you don't like cocoapods or Carthage or Cocoapods-Rome, you can still import it using git submodule or simply copy/paste all the source files in PDTSimpleCalendar to your project.

##Customize it

###Calendar

  • firstDate : When the calendar must starts. If you don't specify anything, it will default to the first day of the current month (based on [NSDate date]). If firstDate is not the 1st of the month, the calendar will display the full month, but dates < firstDate will be disabled.
  • lastDate : When the calendar must ends. If you don't specify anything, it will default to the last day of the next year (based on firstDate). If lastDate is not the last day of the month, the calendar will display the full month, but dates > lastDate will be disabled.
  • calendar : Which calendar to use for display and date calculations. You can set any calendar supported by NSCalendar. the default value will be [NSCalendar currentCalendar].
  • weekdayHeaderEnabled: If enabled, add an extra header on top of the calendar with the days of the week. Default is NO.
  • weekdayTextType: If weekday header is enabled, you can customize the format of the label. (Short (3 letters), VeryShort (1 letter), StandAlone (Full name of the day))

###Colors You can change the display of the calendar using backgroundColor & overlayTextColor properties on PDTSimpleCalendarViewController.

Other colors can be set using UIAppearance on PDTSimpleCalendarViewCell, PDTSimpleCalendarViewHeader & PDTSimpleCalendarViewWeekdayHeader

[[PDTSimpleCalendarViewCell appearance] setCircleDefaultColor:[UIColor whiteColor]];
[[PDTSimpleCalendarViewCell appearance] setCircleSelectedColor:[UIColor orangeColor]];
[[PDTSimpleCalendarViewCell appearance] setCircleTodayColor:[UIColor blueColor]];
[[PDTSimpleCalendarViewCell appearance] setTextDefaultColor:[UIColor redColor]];
[[PDTSimpleCalendarViewCell appearance] setTextSelectedColor:[UIColor purpleColor]];
[[PDTSimpleCalendarViewCell appearance] setTextTodayColor:[UIColor magentaColor]];
[[PDTSimpleCalendarViewCell appearance] setTextDisabledColor:[UIColor yellowColor]];

[[PDTSimpleCalendarViewHeader appearance] setTextColor:[UIColor redColor]];
[[PDTSimpleCalendarViewHeader appearance] setSeparatorColor:[UIColor orangeColor]];

[[PDTSimpleCalendarViewWeekdayHeader appearance] setHeaderBackgroundColor:[UIColor lightGrayColor]];
[[PDTSimpleCalendarViewWeekdayHeader appearance] setTextColor:[UIColor orangeColor]];

See the Demo for the full API and even more customization.

Here is how it looks in the Producteev app:

Producteev

##License

Copyright 2013-2015 Jive Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

jiveapps

Jive App Examples
JavaScript
37
star
2

jive-sdk

This is an implementation of the Jive SDK written in Node.js using Express, mustache and other standard libraries.
JavaScript
35
star
3

QUnitTestRunnerPlugin

plugin to allow JsTestDriver to run QUnit tests with support for async tests
JavaScript
26
star
4

tAMD

Tiny, extensible implementation of the Asynchronous Module Definition (AMD) specification from CommonJS
JavaScript
25
star
5

hubot-jira-lookup

External script for hubot to jira integration.
CoffeeScript
19
star
6

react-d3-charts

A D3 charting library for React
JavaScript
17
star
7

jive-selenium-pages-framework

This repository provides a framework for automated Selenium testing. The framework simplifies the configuration of WebDrivers by providing a facade called a Browser, and LocalBrowserBuilder, RemoteBrowserBuilder for easily creating Browsers. Also provides a Page abstraction for modeling web pages of your webapp for testing. This provides an object-oriented approach to testing a web app, where the basic building blocks are SubPages (i.e. re-usable components of a web page) and TopLevelPages (i.e. a web page at a specific URI).
Java
17
star
8

JiveLoggingHTTPProtocol

An NSURLProtocol to log HTTP Requests and Responses
Objective-C
16
star
9

miru

prime search engine
Java
15
star
10

ansible-thumbor

Ansible role for installing and configuring thumbor
13
star
11

tasmo

Java
12
star
12

jive-ios-sdk

Objective-C
11
star
13

jiverscripts

Reusable JavaScript utilities
JavaScript
11
star
14

jive-sdk-java-springboot

This is an example implementation of a Jive add-on server built and written in Java with SpringBoot + JPA + ThymeLeaf. For more details on Jive add-ons, please check out the https://community.jivesoftware.com/community/developer
Java
11
star
15

jiveapps-gem

The "jiveapps" gem is a set of command line tools for building and hosting Jive Apps.
Ruby
10
star
16

jive-sdk-java-jersey

This is an implementation of the Jive SDK written in Java, implemented for JEE6 using Jersey (JAX RS 2.0), Spring Core 3.2.5 and JSP.
Java
10
star
17

JiveAuthenticatingHTTPProtocol

JiveAuthenticatingHTTPProtocol provides authentication callbacks for a UIWebView
Objective-C
9
star
18

requirejs-messageformat

RequireJS plugin to consume MessageFormat resource bundles
JavaScript
8
star
19

jive-fu-plugin

A Living Jive Reference Plugin
Java
8
star
20

amza

high availability lexicographically sorted key value store and distributed log
Java
7
star
21

node-activity-post

node.js client to post to activity stream or inbox of a user to a Jive instance
JavaScript
6
star
22

GitHub4Jive

This project is to demonstrate the power of integration with Jive. By combining all of the major collaborative elements in GitHub in one add-on Jive can drive innovation with rich discussions and quick access to GitHub resources within Jive. Tiles, apps, services, web hooks, and cartridges will be used to make this experience as natural and powerful as possible.
Objective-C
6
star
23

robot-intellij-plugin

Plugin for IntelliJ providing integration with Robot test case files. Provides integration with Robot Keywords written in Java.
Java
5
star
24

filer

Collection of disk backed storage construct.
Java
4
star
25

jive-sdk-php

This is currently a placeholder for a series tools to assist PHP developers to build Jive Add-Ons. Reach out in the Jive Developer Community if you are interested in contributing.
PHP
4
star
26

jive-utils

A collection of libraries used by jivesoftware open source projects.
Java
3
star
27

JiveFetchedResultsControllerDelegate

JiveFetchedResultsControllerDelegate integrates NSFetchedResultsController with UITableView, and works around a few annoying NSFetchedResultsController+UITableView bugs.
Objective-C
3
star
28

jive-derby

Jive Derby is an open-source project combining IoT, Legos, Pinewood Derby and Jive!
JavaScript
3
star
29

jive-sdk-go

This is currently a placeholder for a series tools to assist Go developers to build Jive Add-Ons. Reach out in the Jive Developer Community if you are interested in contributing.
Go
3
star
30

jive-sdk-python

This is currently a placeholder for a series tools to assist Python developers to build Jive Add-Ons. Reach out in the Jive Developer Community if you are interested in contributing - https://community.jivesoftware.com/community/developer
3
star
31

jive-sdk-python-pip

Useful tools for building microservices and Jive Add-Ons for Python PIP
Python
2
star
32

jive-testing-framework

JavaScript
2
star
33

routing-bird

http routing and discovery
Java
2
star
34

jive-android-core-sdk

The Android SDK for Jive Software's REST API
Java
2
star
35

restz-framework

ResTZ is an extensible REST client framework written in Java that deals with common scenarios (e.g., serialization, OAuth token expiration, etc...).
Java
2
star
36

jive-statuspage-addon

This repository holds source code for an Open Source Jive + StatusPage.io integration
CSS
2
star
37

JiveInterceptingHTTPProtocol

Easily intercept NSURLRequests.
Objective-C
2
star
38

libRange

libRange emulates the W3C DOM Range API on IE 8 and earlier. It's based on TinyMCE's code for the same, but depends only on jQuery (lightly) and an AMD implementation.
JavaScript
2
star
39

jive-splunk-ssi-alerts

This is a project that contains both a Jive & Splunk Add-Ons for streaming custom Splunk alerts to a Jive Simple Stream Integration
CSS
1
star
40

rcvs

Row Column Value Store abstraction
Java
1
star
41

ansible-confd

Ansible recipe for confd
1
star
42

JiveAnywhereCartridges

pagescript
1
star
43

chips

Fork of Android's chips project
Java
1
star
44

ez-activity

JavaScript
1
star
45

leaps-and-bounds

log merge sort
Java
1
star
46

twitter-widget-tile

This is an example implementation of a Twitter Widget in a Jive Tile
JavaScript
1
star
47

jive-sdk-ruby

This is currently a placeholder for a series tools to assist Ruby developers to build Jive Add-Ons. Reach out in the Jive Developer Community if you are interested in contributing.
1
star
48

platform_cli

Python
1
star
49

hubot-jenkins-notify-blame

Forked from jenkins-notify.coffee, includes blaming the person who broke the build.
CoffeeScript
1
star
50

jive-sdk-java-dropwizard

This is reference project for building Jive Add-Ons with Java using DropWizard.io
Java
1
star
51

JiveAuthenticatingWebViewController

A UIViewController containing a UIWebView that uses JiveAuthenticatingHTTPProtocol to respond to NSURLAuthenticationChallenges
Objective-C
1
star
52

jive-sdk-go-gpm

Useful tools for building microservices and Jive Add-Ons for Go Lang
Go
1
star
53

codesquare

JavaScript
1
star