Latest 0.1.0
Homepage https://github.com/afinello/UGDAlertView
License MIT
Platforms ios 7.0, requires ARC

CI Status
Version
License
Platform

Usage

Use similar code in your ciew controller to show a custom call-to-action alert view over your controller content:

UGDAlertViewController* actionVC = [[UGDAlertViewController alloc] initWithTitle:@"Alert title" 
                                                                            text:@"Want to use custom alert view with call to action?" 
                                                                            icon:nil 
                                                                     actionTitle:@"Sure" 
                                                                        negative:@"No, thanks"];

[actionVC setMargin:UIEdgeInsetsMake(self.topLayoutGuide.length, 0, self.bottomLayoutGuide.length, 0)];

[actionVC showInViewController:self withCompletion:^(BOOL accepted) {
    // your code here
    // (accepted == YES) if user pressed the call to action button

    // remove alert view
    [actionVC hideAnimated:YES];
}];

Requirements

iOS 7 and later

Installation

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

pod "UGDAlertView"

Author

Afinello

License

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

Latest podspec

{
    "name": "UGDAlertView",
    "version": "0.1.0",
    "summary": "Custom iOS alert view with a call to action button and callback handling.",
    "description": "UGDAlertView lets you show your app users a custom alert view with call to action and get a callback with positive or negative result.",
    "homepage": "https://github.com/afinello/UGDAlertView",
    "license": "MIT",
    "authors": "Afinello",
    "source": {
        "git": "https://github.com/afinello/UGDAlertView.git",
        "tag": "v0.1.0"
    },
    "social_media_url": "https://twitter.com/afinello",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "UGDAlertView": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This