My mind grapes

Archive for June, 2011

Deleting UITableViewCells

There are two main techniques for deleting UITableViewCells (rows of data) in iOS.

One way is to have the user tap and “edit” button, then present them with the controls to delete items. An example of this is the Safari bookmarks editing feature:

In this example, you have to first tap an edit button to enter “Editing Mode.” Then you tap the red icon that appears on the left side of the cell you want to delete. Then you actually tap the “Delete” button to confirm the action. It’s 3 steps to delete a single item, but it’s obvious that the functionality exists.

The second way is to allow the user to swipe on the UITableViewCell to remove it:

For this functionality, you must first swipe on a cell, and then press the “Delete” button to confirm. Only two actions, which is a little bit more elegant. However, there is no indication given that swipe to delete functionality is available, so the user might get confused how to delete items in the table (or if the functionality is present at all!).

Pole:

UIActionSheet

This week’s UI Element is one of my favorites, the UIActionSheet!

You can use the UIActionSheet to:
– Present the user with options on how to proceed in the application. (ex: an “Export” button might prompt the user on where they would like to export to. Facebook, Twitter, Email, etc)
– Confirm a potentially dangerous action. (Are you sure you want to delete Jane McGee from your contacts list?)

The UIActionSheet often presents the user with a title message, but this is not required.

Here is this week’s pole:

And, an example from the internets:

New Directions

The following domains now redirect to this blog:

www.pinkshirtfriday.com
www.adamkaump.com

Tag Cloud