1 Star 5 Fork 1

JokerV / DXPopver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

#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];
};

空文件

简介

添加对AutoLayout的兼容性,主要表现在添加的仕途是否有父视图的判断,无父视图时(使用时生成,消失后丢弃的一次性展示视图),有父视图时(从父视图中扣取,并添加到PopverView中,消失后收回) 展开 收起
Objective-C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/JokerV/DXPopver.git
git@gitee.com:JokerV/DXPopver.git
JokerV
DXPopver
DXPopver
master

搜索帮助