TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by Lucas Oceano.
An alternative to the UIActionSheet with a block-based API and a customizable look. Inspired by the Spotify app. It looks a lot better live than on the GIF (because compression).
Build and run the AHKActionSheetExample
project in Xcode. AHKViewController.m
file contains the important code used in the example.
Copy all files from Classes/
directory to your project. Then, add QuartzCore.framework
to your project.
A simple example:
#import "AHKActionSheet.h"
...
AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithTitle:nil];
[actionSheet addButtonWithTitle:@"Test" type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
NSLog(@"Test tapped");
}];
[actionSheet show];
The view is customizable either directly or through a UIAppearance API. See the header file (Classes/AHKActionSheet.h
) and the example project to learn more.
0.5.2
0.5.1
0.5
0.4.2
0.4.1
0.4.0
AHKActionSheetButtonTypeDisabled
cancelOnPanGestureEnabled
property, which allows you to disable:
> Gesture-driven navigation with two ways to hide the control: either quick flick down or swipe and release (at the position when the blur is starting to fade)bounces
is now disabled when cancelOnPanGestureEnabled
is turned off and when the scroll view's contentSize
's height is smaller than the screen's height.0.3.0
0.2.0
animationDuration
property0.1.3
0.1.2
UIWindow
is now snapshotted instead of UIViewController's
view
0.1.1
0.1.0
Arkadiusz Holko: