[![CI Status](http://img.shields.io/travis/Francis Visoiu Mistrih/FVCustomAlertView.svg?style=flat)](https://travis-ci.org/Francis Visoiu Mistrih/FVCustomAlertView)
Custom AlertView for iOS SDK.
To run the example project, clone the repo, and run pod install
from the FVCustomAlertView-Example directory first.
- iOS7+ project
- ACR project
FVCustomAlertView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FVCustomAlertView"
Drag the .xcodeproj file into your XCode project and add it as a Target in your Build Phases. Don't forget to add libFVCustomAlertView.a in Link Binary With Library and set the -ObjC flag in Other Linker Flags.
Add the following files and folders to your iOS project.
- FVCustomAlertView.h
- FVCustomAlertView.m
- FVCustomAlertViewResources/
FVCustomAlertView comes with 4 default modes and a cutom mode. The default modes are : (make sure you try them in the example app)
- Loading
[FVCustomAlertView showDefaultLoadingAlertOnView:self.view withTitle:@"Loading..."];
- Done
[FVCustomAlertView showDefaultDoneAlertOnView:self.view withTitle:@"Done"];
- Error
[FVCustomAlertView showDefaultErrorAlertOnView:self.view withTitle:@"Error"];
- Warning
[FVCustomAlertView showDefaultWarningAlertOnView:self.view withTitle:@"Be careful"];
- Custom
UIView *sw = [[UISwitch alloc] init];
[FVCustomAlertView showAlertOnView:self.view withTitle:@"Do you want to recieve notifications from us?"titleColor:[UIColor whiteColor] width:120 height:140 backgroundImage:nil backgroundColor:[UIColor blackColor] cornerRadius:20 shadowAlpha:0.2 alpha:0.8 contentView:sw type:FVAlertTypeCustom];
Francis Visoiu Mistrih, [email protected]
This code is distributed under the terms and conditions of the MIT license.