Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS UI Control Mimicking A UITableView Within A UIAlertView

  •  
  •  
  •  
  •  
  •  

The question of how to place a UITableView within a UIAlertView is one that comes up from time to time.

Here’s a new submission from Matteo Del Vecchio that solves this problem, has been tested to work with iOS 6, and brings a block based syntax, and provides callbacks for when a row is clicked.

Here’s a list of features taken from the readme:

– 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
– 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

A screenshot showing MLTableAlert in action:

MLTableAlert

 

You can find MLTableAlert on Github here.

You can read more about the creation of this control on the Matthew Labs blog  here.

A sample project is included, and it makes for a great selector style view.  The feature set is different from SBTableAlert and in my testing worked great.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments