开源 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.

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容