Giter VIP home page Giter VIP logo

rdpopup's Introduction

RDPopup

A simple way to add custom Popup. Design on Nib and use as you want. Written in Objective-C.

Demo

REQUISITE : Xcode 9 or Later, iOS 9+.**

HOW TO ADD:

  1. Clone/Download the master-repo.

  2. Import "RDPopup" folder (.m/.h) into your project.

  3. Create an ABCIntroView property and add the ABCIntroViewDelegate.

  4. Add #import "RDPopup/RDPopup.h"

HOW TO USE:

  1. Create a new view/nib file. Set the class name to "CustomPopup".

  2. Set the outlets to your respective views.

  3. Add these lines to create a popup

    RDPopup *popup = [[RDPopup alloc]initOnView:self.view];

    popup.delegate = self;
  1. Implement two delegate methods.

  2. To show [popup showPopup];

  3. To hide [popup hidePopup];

Customizations:

Gives you the freedom to design you own popup in nib.

Supported views on popup :

Title Label, message label, cancel button, other button, icon imageview, imageview.

RDPopup view can be customized by :

/*
Animation Duration . Default value 0.3
*/

@property (assign, nonatomic) float animationDuration;
/*
Presenting animation type
*/

@property (assign, nonatomic) FlyInAnimationDirection inAnimation;
/*
Dismissing animation type
*/

@property (assign, nonatomic) FlyOutAnimationDirection outAnimation;
/*
Background Dim enable . Default value NO
*/

@property (assign, nonatomic) BOOL blurBackground;
/*
Dismiss on Background Touch . Default value NO
*/

@property (assign, nonatomic) BOOL dismissOnBackgroundTap;
/*
Background Dim Alpha . Default value 0.3
*/

@property (assign, nonatomic) float dimBackgroundLevel;
/*
Title for Popup View. Default value @"Hi!"
*/

@property (strong, nonatomic) NSString *title;
/*
Message for Popup View. Default value @"Hello World!"
*/

@property (strong, nonatomic) NSString *message;
/*
Cancel button title for Popup View. Default value @"Cancel"
*/

@property (strong, nonatomic) NSString *cancelButtonTitle;
/*
Other button title for Popup View. Default value @"Done"
*/

@property (strong, nonatomic) NSString *otherButtonTitle;
/*
Buttons Radius . Default value 10
*/

@property (assign, nonatomic) float buttonRadius;
/*
Corner radius for Popup view. Default value 10
*/

@property (assign, nonatomic) float cornerRadius;
/*
Icon image name for Popup View. Default value @"icon"
*/

@property (strong, nonatomic) NSString *iconName;
/*
 Image name for Popup View. Default value @"icon"
 */

@property (strong, nonatomic) NSString *imgName;

Support

Please check the example included.

Suggestions/Queries/Feedbacks are welcome.

Feel free to contribute in anyway.

CHEERS!

rdpopup's People

Contributors

rajdhakate avatar

Stargazers

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

Watchers

 avatar  avatar  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.