测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
Released最新发布 | 2015年12月 |
由 Heberti Almeida 维护。
基于 Rdio 站点菜单的自定义 UIView
子类。
pod 'HATransparentView'
将键值对添加到 info.plist:`View controller-based status bar appearance`,`NO`
在您想使用 HATransparentView 的任何地方导入头文件
#import "HATransparentView.h"
@interface ViewController () <HATransparentViewDelegate>
@property (strong, nonatomic) HATransparentView *transparentView;
_transparentView = [[HATransparentView alloc] init];
_transparentView.delegate = self;
_transparentView.tapBackgroundToClose = YES;
_transparentView.hideCloseButton = YES;
[_transparentView open];
[_transparentView close];
- (void)HATransparentViewDidClosed
{
NSLog(@"Did close");
}
_transparentView = [[HATransparentView alloc] init];
_transparentView.backgroundColor = [UIColor colorWithRed:242/255.0 green:46/255.0 blue:50/255.0 alpha:0.9];
[_transparentView open];
HAStyleBlack
自定义状态栏(iOS 7)和关闭按钮,默认是 HAStyleLight
_transparentView = [[HATransparentView alloc] init];
_transparentView.style = HAStyleBlack;
[_transparentView open];
HATransparentView 在 MIT 许可下发布。请参阅 LICENSE。
Heberti Almeida