TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Bruno Tortato Furtado.
Simple and intuitive alert view. Similar to push notification effect. This class uses UIAlertView default methods and protocols.
NZAlertView works on iOS 6.0+ version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
You will need LLVM 3.0 or later in order to build NZAlertView.
NZAlertView use UIImage-Helpers project for manipulating images.
Alternatively you can directly add source files to your project.
NZAlertView
folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.UIAlertView
#import "NZAlertView.h"
...
{
// There are several ways to init, just look at the class header
NZAlertView *alert = [[NZAlertView alloc] initWithStyle:NZAlertStyleSuccess
title:@"Alert View"
message:@"This is an alert example."
delegate:nil];
[alert setTextAlignment:NSTextAlignmentCenter];
[alert show];
// or
[alert showWithCompletion:^{
NSLog(@"Alert with completion handler");
}];
}
#import "NZAlertViewDelegate.h"
...
- (void)willPresentNZAlertView:(NZAlertView *)alertView;
- (void)didPresentNZAlertView:(NZAlertView *)alertView;
- (void)NZAlertViewWillDismiss:(NZAlertView *)alertView;
- (void)NZAlertViewDidDismiss:(NZAlertView *)alertView;
@property (nonatomic, assign) id delegate;
@property (nonatomic, assign) NZAlertStyle alertViewStyle;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *message;
@property (nonatomic, readonly, getter = isVisible) BOOL visible;
@property (nonatomic, assign) NSString *fontName;
@property (nonatomic) NSTextAlignment textAlignment;
@property (nonatomic, assign) CGFloat alertDuration;
@property (nonatomic, assign) CGFloat animationDuration;
@property (nonatomic, assign) CGFloat screenBlurLevel;
NZAlertView-Icons.budle
NZAlertViewColor
class and override the methods: errorColor
, infoColor
and successColor
.This code is distributed under the terms and conditions of the MIT license.
A brief summary of each NZAlertView release can be found on the wiki.
NZAlertStyleCustom
style