开源软件名称:DXPopver
开源软件地址:https://gitee.com/JokerV/DXPopver
开源软件介绍:
#DXPopver
DXPopoverA 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 ##Usage The API and demo is fairly straight forward. You can read details in the demo. ##Showing the popover - make a your contentView, set its frame or bounds.
- new a DXPopover.
- show it.
Simpleeg: 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 concereteg: [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];}; |
请发表评论