regexident / DLAlertView

UIAlertView replacement that can embed custom content views, is fully themable and let's you use a delegate and/or blocks.
Other
284 stars 37 forks source link
objective-c theme uialertview

DLAlertView No Maintenance Intended

DLAlertView is an API-compatible UIAlertView replacement that can embed custom content views, is fully themable and let's you use a delegate and/or blocks.

Preview

Demo Animation

Features

Installation

Just copy the files in "DLAlertView/Classes/..." into your project.

Alternatively you can install DLAlertView into your project with CocoaPods.
Just add it to your Podfile: pod 'DLAlertView'

Usage

See DLAVAlertView.h for the complete API.

Example usage

DLAVAlertView *alertView = [[DLAVAlertView alloc] initWithTitle:@"Click OK!" message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
        [alertView showWithCompletion:^(DLAVAlertView *alertView, NSInteger buttonIndex) {
            NSLog(@"Clicked button '%@' at index: %ld", [alertView buttonTitleAtIndex:buttonIndex], (long)buttonIndex);
        }];

Demos

DLAlertView contains a demo app giving you a quick overview of many of its features.

ARC

DLAlertView uses automatic reference counting (ARC).

Dependencies

None.

Requirements.

iOS 5.1+

Creator

Vincent Esche (@regexident)

License

DLAlertView is available under a modified BSD-3 clause license with the additional requirement of attribution. (DLAlertView further more includes code by Alexander Jarvis, licensed under the MIT license.) See the LICENSE file for more info.