# DXPopver **Repository Path**: JokerV/DXPopver ## Basic Information - **Project Name**: DXPopver - **Description**: 添加对AutoLayout的兼容性,主要表现在添加的仕途是否有父视图的判断,无父视图时(使用时生成,消失后丢弃的一次性展示视图),有父视图时(从父视图中扣取,并添加到PopverView中,消失后收回) - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 1 - **Created**: 2015-06-19 - **Last Updated**: 2025-07-23 ## Categories & Tags **Categories**: ios-modules **Tags**: None ## README #DXPopver [![Build Status](https://travis-ci.org/xiekw2010/DXPopover.png)](https://travis-ci.org/xiekw2010/DXPopover) 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](https://github.com/xiekw2010/DXPopover/raw/master/popover.gif) ##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]; };