Giter Site home page Giter Site logo

julioacarrettoni / dlalertview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from regexident/dlalertview

2.0 1.0 0.0 2.11 MB

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

License: Other

Ruby 1.58% Objective-C 98.42%

dlalertview's Introduction

DLAlertView

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.

dlalertview's People

Contributors

jeremybower avatar julioacarrettoni avatar mantas avatar markwpiper avatar nschum avatar regexident avatar seviu avatar sferrini avatar shukuyen avatar zwf avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.