开源 YHPopupView 组件
2016-12-03 本文已影响168人
YxxxHao
开源 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.pngInstallation
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