Latest 1.2.5
Homepage https://github.com/regexident/DLAlertView
License BSD-3
Platforms ios 5.1, requires ARC
Authors

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

  • Same API as UIAlertView (+ much, much more!).
  • Use delegates and/or blocks!
  • Animations that match UIAlertView in iOS 7.
  • Default look that matches UIAlertView in iOS 7.
  • Any number of buttons per alert (1..n).
  • Any number of textfields per alert (0..n).
  • Optional custom content view.
  • Change title/message/contentView while shown.
  • Add textfields while shown.
  • Add buttons while shown.
  • Apply custom themes to your individual alerts.
  • Apply individual themes to your individual textfields.
  • Apply individual themes to your individual buttons.
  • Change themes of alert/textfields/buttons while shown.
  • Crossfade between themes.

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.

Latest podspec

{
    "name": "DLAlertView",
    "version": "1.2.5",
    "summary": "UIAlertView replacement that can embed custom content views, is fully themable and let's you use a delegate and/or blocks.",
    "description": "                   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.nn                   ## Featuresnn                   * Same API as `UIAlertView` (+ much, much more!).n                   * Use delegates and/or blocks!n                   * Animations that match UIAlertView in iOS 7.n                   * Default look that matches UIAlertView in iOS 7.n                   * Any number of buttons per alert.n                   * Any number of textfields per alert.n                   * Optional custom content view.n                   * Change title/message/contentView while shown.n                   * Add textfields while shown.n                   * Add buttons while shown.n                   * Apply custom themes to your individual alerts.n                   * Apply individual themes to your individual textfields.n                   * Apply individual themes to your individual buttons.n                   * Change themes of alert/textfields/buttons while shown.n                   * Crossfade between themes.n",
    "homepage": "https://github.com/regexident/DLAlertView",
    "license": {
        "type": "BSD-3",
        "file": "LICENSE"
    },
    "authors": {
        "Vincent Esche": "[email protected]"
    },
    "platforms": {
        "ios": "5.1"
    },
    "source": {
        "git": "https://github.com/regexident/DLAlertView.git",
        "tag": "1.2.5"
    },
    "source_files": "DLAlertView/Classes/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This