Latest 0.1.6
Homepage https://github.com/xiekw2010/DXPopover
License MIT
Platforms ios 6.0, requires ARC
Authors

DXPopover

Version
License
Platform

A Popover mimic Facebook app popover using UIKit.

The concept of this popover is very simple: add your contentView in a popover, then show the popover in the container view.

Requirements

iOS ~> 6.0

Installation

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

pod "DXPopover"

Screenshot

DXPopover

Usage

The API and demo is fairly straight forward. You can read details in the demo.

Showing the popover

  1. make a your contentView, set its frame or bounds.
  2. new a DXPopover.
  3. show it.
Simple

eg:

UIImageView *imageV= [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
imageV.image = [UIImage imageNamed:@"ig20.jpg"];
DXPopover *popover = [DXPopover popover];
[popover showAtView:self.btn1 withContentView:imageV];
More conceret

eg:

[self.popover showAtPoint:yourPoint popoverPostion:DXPopoverPositionDown withContentView:self.tableView inView:self.tabBarController.view]; // 1.Set the show point 2.set The position if up or down staying the showPoint, 3.Your contentView 4.The containerView
__weak typeof(self)weakSelf = self;
self.popover.didDismissHandler = ^{ //The callback of popover dimissal.
    [weakSelf bounceTargetView:titleView];
};

License

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

Latest podspec

{
    "name": "DXPopoverKnockdownFork",
    "version": "0.1.6",
    "summary": "A Popover mimic Facebook  app popover using UIKit.",
    "description": "A fork of DXPopover for Knockdown Outdoors iOS ApplicationnnA Popover mimic Facebook  app popover using UIKit.nn              The concept of this popover is very simple: add your contentView in a popover, then show the popover in the container view.n              * Markdown format.n              * Don't worry about the indent, we strip it!",
    "homepage": "https://github.com/xiekw2010/DXPopover",
    "license": "MIT",
    "authors": {
        "xiekw2010": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rjmiller2543/DXPopoverKnockdownFork.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "DXPopover": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This