Giter VIP home page Giter VIP logo

popupcontainer's Introduction

PopupContainer

CI Status Version License Platform

NOTE

Since Version 0.0.2 is adapted to Swift 1.2. If you want to use this library with previous Swift versions, force the pod version to 0.0.1

Usage

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

Before using PopupContainer, import the module to your file:

import PopupContainer

To create a popup, use any UIView you have created, either from Xib or from code, and then do

PopupContainer.generatePopupWithView(yourView).show()

To close a popup, just call close() function of PopupContainer.

class ViewController: UIViewController {
    var aPopupContainer: PopupContainer?

    @IBAction func showFromXibButtonPressed(sender: AnyObject) {
        let xibView = NSBundle.mainBundle().loadNibNamed("XibPopup", owner: nil, options: nil)[0] as XibPopup
        self.aPopupContainer = PopupContainer.generatePopupWithView(xibView)
        self.aPopupContainer?.show()
    }

    func closePopup() {
        self.aPopupContainer?.close()
    }
}

Requirements

iOS 8.0+

Installation

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

pod "PopupContainer"

Examples

This screenshots were taken from the example project:

Portrait:

Portrait popup small Protrait popup big

Landscape:

Landscape popup small Landscape popup big

Author

Lucas Diez de Medina @ Technopix Argentina, [email protected]

popupcontainer's People

Contributors

lucaslt89 avatar munky69rock 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

Watchers

 avatar  avatar  avatar  avatar

popupcontainer's Issues

Pass data from one popup to another

I have a popup that has some labels and a button. When the button is pushed, i open a second popup. Whenever I close the second popup, I need to fill the data in the labels of the first popup. How can I handle this?

Errror using pod install

Unfortunately, your example seems to be broken:

[!] Unable to satisfy the following requirements:

  • PopupContainer (from../) required by Podfile
  • PopupContainer (= 0.1.0) required by Podfile.lock

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.