FVCustomAlertView 0.3.3

FVCustomAlertView 0.3.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2015

Maintained by Francis Visoiu Mistrih.



Custom AlertView for iOS SDK.

Usage

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

Requirements

  • iOS8+ project
  • ARC project

How to install FVCustomAlertView

Use FVCustomAlertView as a static library

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.

Manually add the files to your project

Add the following files and folders to your iOS project.

  • FVCustomAlertView.h
  • FVCustomAlertView.m
  • FVCustomAlertViewResources/

How to use FVCustomAlertView

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..." withBlur:YES];
  • Done

[FVCustomAlertView showDefaultDoneAlertOnView:self.view withTitle:@"Done" withBlur:YES];
  • Error

[FVCustomAlertView showDefaultErrorAlertOnView:self.view withTitle:@"Error" withBlur:YES];
  • Warning

[FVCustomAlertView showDefaultWarningAlertOnView:self.view withTitle:@"Be careful" withBlur:YES];
  • 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 blur:YES backgroundImage:nil backgroundColor:[UIColor blackColor] cornerRadius:20 shadowAlpha:0.2 alpha:0.8 contentView:sw type:FVAlertTypeCustom];

v.0.2

Current view

The current view can be retrieved using the method

+ (UIView *)currentView;

v.0.3

Added blur option, using UIBlurEffect. iOS8+ only.

Author

Francis Visoiu Mistrih http://francisvm.com/

[email protected]

License

This code is distributed under the terms and conditions of the MIT license.