GithubHelp home page GithubHelp logo

tangtao / srmonthpicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simonrice/srmonthpicker

0.0 2.0 0.0 94 KB

Like UIDatePicker, but without the days.

License: MIT License

Ruby 5.64% Objective-C 94.36%

srmonthpicker's Introduction

SRMonthPicker

Like UIDatePicker, but without the days.

This is a native, localised month picker for iOS, licenced under the terms of the MIT License. It's meant to mimic the look, feel & behaviour of 2 UI elements on iOS:

  • A monthpicker that appears for an <input type="month" /> element on iOS Safari
  • A UIDatePicker set to Date-only mode, but without the day element.

Including in your project

The easiest way by far of including this project is to use CocoaPods. Once you've got that up & running for your project, simimply add the dependency to your Podfile:

platform :ios
...
pod 'SRMonthPicker'
...

Then run pod install to install the dependencies.

Alternatively, simply clone this project as a submodule or download the classes, and include them in your project. Bear in mind this library uses ARC, so you should create a Static Library if your project doesn't.

Usage

Simply drag out a UIPickerView in Interface Builder. Under the Assistant Editor, set the class of the picker to SRMonthPicker.

You have properties to show the year first, along with the setting (& getting) the selected date, plus the maximum & minimum years.

Contributions

As everyone says, GitHub is about social coding - I didn't just choose to use it because of my love of git as a version control system. Please do chip in & help make this an even better project.

License

As stated further up on this page, usage is provided under the MIT License. See the LICENSE file or any class header for the full details.

srmonthpicker's People

Contributors

simonrice avatar tangtao avatar

Watchers

 avatar  avatar

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.