Latest 1.0.2
Homepage https://github.com/ddebin/DDPopoverBackgroundView
License MIT
Platforms ios 5.0
Authors

Purpose

DDPopoverBackgroundView is a single-file iOS 5.0+ ARC class (non-ARC compatible) to help customizing UIPopoverController popovers.

Originally inspired by KSCustomUIPopover and PCPopoverController.

Usage

Usage is simple, all you have to do is include DDPopoverBackgroundView and call setPopoverBackgroundViewClass:.

UIPopoverController *popOver = [[UIPopoverController alloc] initWithContentViewController:content];
[popOver setPopoverBackgroundViewClass:[DDPopoverBackgroundView class]];

Properties / Methods

  • + (void)setContentInset:(CGFloat)contentInset;
    adjust content inset (~ border width)

  • + (void)setTintColor:(UIColor *)tintColor;
    set tint color used for arrow and popover background

  • + (void)setBackgroundImageCornerRadius:(CGFloat)cornerRadius;
    set background image corner radius

  • + (void)setShadowEnabled:(BOOL)shadowEnabled;
    enable/disable shadow under popover

  • + (void)setArrowBase:(CGFloat)arrowBase;
    + (void)setArrowHeight:(CGFloat)arrowHeight;
    set arrow width (base) / height

  • + (void)setBackgroundImage: top: right: bottom: left:
    set custom images for background and top/right/bottom/left arrows

  • + (void)rebuildArrowImages;
    rebuild pre-rendered arrow/background images using tintColor and arrowBase / arrowHeight

License

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

Latest podspec

{
    "name": "DDPopoverBackgroundView",
    "version": "1.0.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Damien Debin": "[email protected]"
    },
    "homepage": "https://github.com/ddebin/DDPopoverBackgroundView",
    "summary": "DDPopoverBackgroundView is a single-file iOS 5+ class to help customizing UIPopoverController popovers.",
    "source": {
        "git": "https://github.com/ddebin/DDPopoverBackgroundView.git",
        "tag": "1.0.2"
    },
    "source_files": "*{.h,.m}",
    "platforms": {
        "ios": "5.0"
    },
    "requires_arc": false
}

Pin It on Pinterest

Share This