开源 YHPopupView 组件

作者: YxxxHao | 来源:发表于2016-12-03 17:41 被阅读168次

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

    相关文章

      网友评论

        本文标题:开源 YHPopupView 组件

        本文链接:https://www.haomeiwen.com/subject/zvycmttx.html