Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.02 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.02 KB

Icon Action Sheet Demo

Version History

10/8/2012 - Initial Commit

Introduction

This project contains a reusable classes for presenting a view that imitates the uiactivityviewcontroller in iOS. In iOS 6 the button based action sheet has been replaced in several Apple apps with a controller that contains friendlier space saving icons. This class allows people to easily reproduce this same control using blocks and allows for easier customizations than the uiactivityviewcontroller.

Using the class

By default a cancel button is added to the view. A title can be specified for the action sheet. Icons with labels and blocks can be added as well. Please see below for an example.

IconActionSheet *sheet = [IconActionSheet sheetWithTitle:@"Icon Action Sheet Demo"];
    
[sheet addIconWithTitle:@"Camera" image:[UIImage imageNamed:@"Facebook.png"] block:^{
    //Do things
} atIndex:-1];    
[sheet showInView:self.view];