GithubHelp home page GithubHelp logo

a363211861 / mltablealert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthewlabs/mltablealert

0.0 2.0 0.0 265 KB

A block-based UIAlertView replacement which allows you to show table view in alerts for fast selection.

Home Page: http://www.matthewlabs.com/blog/mltablealert-an-overview/

Objective-C 100.00%

mltablealert's Introduction

MLTableAlert

MLTableAlert is a block-based UIAlertView replacement which allows you to show table view in alerts for fast selection.
MLTableAlert is completely based on UIView and it isn't a custom subclass of UIAlertView. It supports ARC and is compatible with iOS SDK 5.0 or later.
Here are some features:

  • Block-based, no more delegates required.
  • table property to access to the table view.
  • completionBlock property to configure actions which have to be performed when Cancel button is pressed
  • selectionBlock property to configure actions which have to be performed when a row in table view is pressed
  • Custom height settings
  • Landscape e orientation support for iPad
  • Table alert creation through class or init method
  • Table view customization managed by blocks: style your cells as you want
  • Beautiful animations
  • UIAlertView-like interface
  • Retina ready and compatible with iPhone, iPod and iPad

This is how the alert looks like:

MLTableAlert

Use MLTableAlert in your projects

  1. Download the latest code version from the repository (using the Download Source button or your preferred command-line tool).
  2. If you have to, extract the archive.
  3. All you need is contained in the MLTableAlert Files folder.
  4. Drag it to your project and make sure that the option Copy items is checked.
  5. Add QuartzCore framework to your project.

Demo

A demo project, called MLTableAlertDemo, is included so you will see how to use this class.

License

The license for this source code is included in the Source Code License file.
It's a BSD-like license with attribution: you can use this code in your projects, even if they are commercial or closed-source; you only need to credit me! For warranties and other info about this code, read the license file.

Changelog

Version 1.3 @ July 3rd, 2013

  • Cancel button can also be omitted to show an alert for mandatory selection
  • Cancel button drawing improvements
  • Fixed typo and version numbers

Version 1.2 @ March 30th, 2013

  • Landscape and Orientation support for iPad
  • Bug fix

Version 1.1 @ December 31st, 2012

  • Custom height settings: now you can set your preferred height to the alert
  • Changed properties to instance variables in initialization methods

Version 1.0 @ December 22nd, 2012

  • Initial release: probably there are some bugs and the code could be improved…
    I'm here to hear your requests or issues and I hope this code will simplify your developer life!

Credits

Matteo Del Vecchio
Matthew Labs

Web: Matthew Labs
Twitter: @MatthewLabs
Facebook: facebook.com/MatthewLabsDev
Google+: Matthew Labs Page

mltablealert's People

Contributors

k06a avatar matteodelv 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.