Latest 1.0.3
Homepage https://github.com/dsdsk/DSDAlertManager
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

DSDAlertManager is intended to simplify the dialog display in iOS.

Requirements

  • iOS 8.0+

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

DSDAlertManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "DSDAlertManager"

Usage

OK button only

[DSDAlertManager showAlert:self
                     title:@"title"
                   message:@"message"
                        ok:^{
                            NSLog(@"OK tap!");
                        }];

OK button only (Customize button label)

[DSDAlertManager showAlert:self
                     title:@"title"
                   message:@"message"
                   okLabel:@"CustomOK"
                        ok:^{
                            NSLog(@"OK tap!");
                        }];

OK and Cancel buttons

[DSDAlertManager showAlert:self
                     title:@"title"
                   message:@"message"
                        ok:^{
                            NSLog(@"OK tap!");
                        }
                    cancel:^{
                        NSLog(@"Cancel tap!");
                    }];

YES and NO buttons

[DSDAlertManager showAlert:self
                     title:@"title"
                   message:@"message"
                       yes:^{
                           NSLog(@"YES tap!");
                       }
                        no:^{
                            NSLog(@"NO tap!");
                        }];

YES and NO buttons (Customize button label)

[DSDAlertManager showAlert:self
                     title:@"title"
                   message:@"message"
                  yesLabel:@"CustomYES"
                       yes:^{
                           NSLog(@"YES tap!");
                       }
                   noLabel:@"CustomNO"
                        no:^{
                            NSLog(@"NO tap!");
                        }];

Possible value input

[DSDAlertManager showEditAlert:self
                         title:@"title"
                       message:@"message"
                         value:_dataSources[4].value
                            ok:^(NSString *value) {
                                NSLog(@"OK(%@) tap!", value);
                            }
                        cancel:^{
                            NSLog(@"Cancel tap!");
                        }];

Author

dsdsk

License

DSDAlertManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DSDAlertManager",
    "version": "1.0.3",
    "summary": "Is the manager to open the Dialog easily.",
    "description": "Is the manager to open the UIAlertController easily.",
    "homepage": "https://github.com/dsdsk/DSDAlertManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "dsdsk": ""
    },
    "source": {
        "git": "https://github.com/dsdsk/DSDAlertManager.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DSDAlertManager/Classes/*.{h,m}"
}

Pin It on Pinterest

Share This