DXPopover
A Popover mimic Facebook app popover using UIKit
Install / Use
/learn @xiekw2010/DXPopoverREADME
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.
Requirements
iOS ~> 6.0
Installation
DXPopover is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DXPopover"
##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.
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.
Related Skills
node-connect
335.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.7kCommit, push, and open a PR
