All Projects → tichise → PopOverAlert

tichise / PopOverAlert

Licence: MIT license
PopOverAlert is a PopOver style alert view.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to PopOverAlert

Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+4353.57%)
Mutual labels:  alert, popover, pop
Ftpopovermenu swift
FTPopOverMenu_Swift, swift version of FTPopOverMenu. FTPopOverMenu is a pop over menu for iOS which is maybe the easiest one to use. Supports both portrait and landscape. It can show from any UIView, any UIBarButtonItem and any CGRect.
Stars: ✭ 326 (+482.14%)
Mutual labels:  popover, menu, pop
Ftpopovermenu
FTPopOverMenu is a pop over menu for iOS which is maybe the easiest one to use. Supports both portrait and landscape. It can show from any UIView, any UIBarButtonItem and any CGRect.
Stars: ✭ 988 (+1664.29%)
Mutual labels:  popover, menu, pop
Jxpopupview
一个轻量级的自定义视图弹出框架
Stars: ✭ 117 (+108.93%)
Mutual labels:  alert, popover, pop
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+4391.07%)
Mutual labels:  alert, popover, pop
Jquery Confirm
A multipurpose plugin for alert, confirm & dialog, with extended features.
Stars: ✭ 1,776 (+3071.43%)
Mutual labels:  alert, confirm
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (+3332.14%)
Mutual labels:  alert, confirm
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (+225%)
Mutual labels:  alert, pop
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+24773.21%)
Mutual labels:  alert, confirm
React Popup
React popup component
Stars: ✭ 198 (+253.57%)
Mutual labels:  alert, popover
Wc Messagebox
基于 Vue 2.0 开发的 Alert, Toast, Confirm 插件, UI仿照 iOS 原生
Stars: ✭ 203 (+262.5%)
Mutual labels:  alert, confirm
react-st-modal
Simple and flexible modal dialog component for React JS
Stars: ✭ 41 (-26.79%)
Mutual labels:  alert, confirm
Hibiscus.js
Native Angular directives for Bootstrap4
Stars: ✭ 115 (+105.36%)
Mutual labels:  alert, popover
Notiflix
Notiflix is a JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
Stars: ✭ 172 (+207.14%)
Mutual labels:  alert, confirm
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (+78.57%)
Mutual labels:  alert, menu
Vue Simple Alert
Simple alert(), confirm(), prompt() for Vue.js
Stars: ✭ 93 (+66.07%)
Mutual labels:  alert, confirm
Jh flutter demo
a flutter demo
Stars: ✭ 229 (+308.93%)
Mutual labels:  alert, pop
react-native-popable
Popovers, tooltips for React Native
Stars: ✭ 298 (+432.14%)
Mutual labels:  alert, popover
vue2-dialog
A mobile Vue plugin for VueDialog
Stars: ✭ 21 (-62.5%)
Mutual labels:  alert, confirm
Smalltalk
Promise-based Alert, Confirm and Prompt replacement
Stars: ✭ 76 (+35.71%)
Mutual labels:  alert, confirm

PopOverAlert CocoaPods Version Platform License

PopOverAlert is a PopOver style alert view.

Please use it when you want to display confirmation screen without screen transition.

Image

iPhone

Examples

for Swift

import UIKit
import PopOverAlert

class SampleViewController: UIViewController, UIAdaptivePresentationControllerDelegate {

    @IBOutlet weak var baseTextView:UITextView?

    override func viewDidLoad() {
        super.viewDidLoad()

        let barButtonItem:UIBarButtonItem = UIBarButtonItem(title: "menu", style: .plain, target: self, action: #selector(SampleViewController.openAlert(sender:)))
        self.navigationItem.rightBarButtonItem = barButtonItem
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }


    @objc public func openAlert(sender:UIBarButtonItem) {

        let popOverAlertViewController = PopOverAlertViewController.instantiate()
        popOverAlertViewController.setButtonText("OK")
        popOverAlertViewController.setMessage("Do you want to send mail?")
        popOverAlertViewController.setSubMessage("When you press OK, the mail will be sent immediately.")

        popOverAlertViewController.setShowsVerticalScrollIndicator(true)
        popOverAlertViewController.setSeparatorStyle(UITableViewCellSeparatorStyle.singleLine)
        popOverAlertViewController.popoverPresentationController?.barButtonItem = sender
        popOverAlertViewController.preferredContentSize = CGSize(width: 300, height:110)
        popOverAlertViewController.presentationController?.delegate = self

        popOverAlertViewController.setMessageFont(UIFont.systemFont(ofSize: 16))
        popOverAlertViewController.setSubMessageFont(UIFont.systemFont(ofSize: 12))
        popOverAlertViewController.setButtonTextFont(UIFont.systemFont(ofSize: 14))
        popOverAlertViewController.setButtonTextColor(UIColor.black)

        popOverAlertViewController.completionHandler = { () -> Void in

        }
        present(popOverAlertViewController, animated: true, completion: nil)
    }

    func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {
        return UIModalPresentationStyle.none
    }

    func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
        return UIModalPresentationStyle.none
    }
}

Installation (CocoaPods)

pod PopOverAlert

CocoaPods URL

License

PopOverAlert is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].