GithubHelp home page GithubHelp logo

fvcustomalertview's Introduction

FVCustomAlertView

CI Status Version License Platform

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

CocoaPods

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

pod "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 allowTap:YES];
  • Done

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

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

[FVCustomAlertView showDefaultWarningAlertOnView:self.view withTitle:@"Be careful" withBlur:YES allowTap: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 allowTap:YES];

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.
  • Add tap to dismiss parameter

Author

Francis Visoiu Mistrih http://francisvm.com/

[email protected]

License

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

fvcustomalertview's People

Contributors

francisvm avatar readmecritic avatar thegameg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fvcustomalertview's Issues

Buttons / UITextField

I was looking for a replacement for the uialertview with three buttons, ok, forgot and cancel, be nice to see a screenshot with more buttons and a uitextfield, maybe example code showing how to access the text value too.

Rotation

Hi.

It seems rotation is not handled properly, the HUD is not properly recentered when rotation happens.

Is it a problem only in y project, or is this feature not ready yet ?

reference to current view

Hello.

It would be a nice addition to have a getter of the current displayed view.

Do you have this in your roadmap ? )

Thx

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.