1 Star 5 Fork 1

JokerV / DXPopver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
JokerV 提交于 2015-06-19 10:55 . 添加图片

#DXPopver

Build Status

DXPopover

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.

##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];
};
Objective-C
1
https://gitee.com/JokerV/DXPopver.git
git@gitee.com:JokerV/DXPopver.git
JokerV
DXPopver
DXPopver
master

搜索帮助