• Stars
    star
    727
  • Rank 62,329 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Popover mimic Facebook app popover using UIKit

DXPopover

Version License Platform

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

License

DXPopover is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

react-native-gitfeed

Yet another Github client written with react-native.
JavaScript
1,725
star
2

DXAlertView

A path style alert view
Objective-C
144
star
3

DXTopBarMessageView

If you like to show a message on the top of your viewController
Objective-C
42
star
4

DXRefresh

Simple way to integrate pull down refresh and pull up fresh
Objective-C
28
star
5

DXSemiViewController

Aside from the MainViewController's side beatiful
Objective-C
23
star
6

DXImagePicker

Simple Imager picker which mimic Facebook's UI and UX
Objective-C
14
star
7

egg-typebox-validate

another json-schema validator plugin for eggjs project base on TypeBox and ajv
TypeScript
8
star
8

WeInstagram

Yet another Instagram browser and downloader written with React-Native
Objective-C
6
star
9

DXRoundProgressImageView

Show download progress imageview like instagram's loading imageView
Objective-C
6
star
10

SafariSceenShotExtension

iOS 8 Safari screen shot extension
Objective-C
5
star
11

DXFPSLabel

A label shows app's current FPS when needed(In UITrackingRunLoopMode)
Objective-C
4
star
12

DXMarqueeView

Support right and left direction marquee view
Objective-C
4
star
13

DXFileManager

A file manager wrapper the NSFileManager
Objective-C
2
star
14

async-ware

A class for easy writing js middlewares
JavaScript
2
star
15

DXPhotoBrowser

A photo browser for displaying a bunch of images one by one
Objective-C
2
star
16

xiekw2010.github.com

Ruby Jekyll Blog
HTML
1
star
17

ComponentKitPlay

Let's play with componentKit
Objective-C++
1
star
18

all_layouts

Examples of all ios layouts ways
Objective-C
1
star
19

Xcode-modern-template

Build the modern template for u if u hate the single ViewController template
Objective-C
1
star
20

KXTagsCloudView

give it a array of string, it will feed back a cloud of tags
1
star
21

DXWaterFlowLayout

subclass of UICollectionViewLayout to imp the waterFlow, used like the native flowLayout
Swift
1
star
22

DXPhotoBrowser-DXSimplePhoto

A photo instance using SDWebImage working on DXPhotoBrowser
Objective-C
1
star
23

ua-spy

user agent parser
JavaScript
1
star
24

DXProgressHUD

A UI improvement from SVProgressHUD
Objective-C
1
star