Coder Social home page Coder Social logo

matthewlabs / mltablealert Goto Github PK

View Code? Open in Web Editor NEW
128.0 8.0 26.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

matteodelv avatar k06a avatar

Stargazers

frankfanslc avatar Sebastian Barajas avatar wxj avatar Marcelo Sampaio avatar 夜阑小雨 avatar BruceZhang avatar WindFlyCloud avatar  avatar Victor Zheng avatar Deepu Mukundan avatar  avatar stevenlfg avatar LinkJin avatar bin avatar Wang Shuai avatar Mohammad Zekrallah avatar  avatar Luna avatar Nathan Cain avatar Tassel avatar skyfox avatar Daren avatar Marcelo Moscone avatar jasio avatar  avatar Jianfeng Wu avatar Babatunde Adeyemi avatar  avatar rayjune avatar Brendan Li avatar Oleksandr Zarochintsev avatar Vitalii Kuznetsov avatar yinjiaji avatar adiman avatar cokecoffe avatar xZenon avatar qi avatar Jacky avatar Voltron avatar rickybjj avatar  avatar Brooks avatar Christoph Lederer avatar  avatar Thomas Catterall avatar Samuel Giddins avatar Maciej Kuliszkiewicz avatar Michail Timoleon avatar ningfeng avatar Hao.Dongfang avatar Alex avatar Nawaf Aldosari avatar jprothwell avatar Irek Khasyanov avatar Andrea Corso avatar Chedli Lakhdhar avatar  avatar tagyro avatar  avatar kusoware avatar Kitsion avatar Elango.a avatar Brad Pillow avatar  avatar Steve Kohls avatar  avatar Andy avatar Ketul Shah avatar Hercules Junior avatar David Barker avatar Yatin Chauhan avatar  avatar yager avatar  avatar Fabien avatar Finn avatar Luis Hernandez avatar Ricky Tan avatar Dick Verbunt avatar jtianling avatar  avatar  avatar  avatar  avatar Daniel Martyn avatar Andy Bennett avatar Brett Spurrier avatar Shuduo Sang avatar  avatar Max avatar matiaz avatar Arnaud Coomans avatar Isken Huang avatar Mark Lilback avatar  avatar Jian Zhang avatar Bruno Gama avatar Vladislav Alekseev avatar Matthew McCroskey avatar Chris Witko avatar

Watchers

 avatar mayulu avatar Kevin Hewitt avatar  avatar James Cloos avatar  avatar JACK ZHAO avatar Jianfeng Wu avatar

mltablealert's Issues

Landscape

Please add Landscape Support and Orientation change.

Thanks

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.