开源 YHPopupView 组件

开源 YHPopupView 组件,持续更新中。已经发布 v0.1.0 版本。

README

A pubilic popup view, YHPopupView, is provided on iOS. And it can be used and customized convieniencely. Then you can focus on the view with the context that you want to show.

开源 YHPopupView 组件_第1张图片
0.png

Installation

The preferred way of installation is via CocoaPods. Just add

pod 'YHPopupView'

and run pod install. It will install the most recent version of YHPopupView.

If you would like to use the latest code of YHPopupView use:

pod 'YHPopupView', :head

Usage

#import "ViewController.h"
#import "YHPopupView.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    YHPopupView *popupView = [[YHPopupView alloc] initWithFrame:CGRectMake(50, 50, 200, 200)];
    popupView.clickBlankSpaceDismiss = YES;
    // You can add subview in need
    popupView.backgroundColor = [UIColor blueColor];
    [self presentPopupView:popupView];
}

@end

Changelog

v0.1.0 first version

你可能感兴趣的:(开源 YHPopupView 组件)