Giter Site home page Giter Site logo

modalpickerviewcontroller's Introduction

ModalPickerViewController

The ModalPickerViewController is a view controller that is designed to replace ActionSheetDatePicker. The ActionSheetDatePicker was an example provided by Xamarin to show a nice looking Date Picker that did not take up the whole screen.

Though this did do the job, the UIActionSheet was not designed to be subclassed or views added to its hierarchy. Starting with iOS 7, Apple started issuing runtime warnings, but did not crash the app. The warnings looked something like this:

Error: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

Notice the last two lines of the warning. Apple was warning developers in iOS 7 that this was not the way the UIActionSheet was intended to be used, and that it will BREAK in a future version of iOS. Well, it now crashes on iOS 8.

Date Picker ScreenshotCustom Picker Screenshot

Example Usage

Please see the blog post at http://sharpmobilecode.com/a-replacement-for-actionsheet-date-picker/ for example usage

Areas For Improvement

When you rotate between Portrait and Landscape, the transition is not as smooth as I would like it to be. Feel free to submit a pull request and take a shot at it! :)

Contributors

Ruben Macias @sharpmobilecode

License

Licensed under the Apache License, Version 2.0

modalpickerviewcontroller's People

Contributors

sharpmobilecode 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.