HATransparentView 0.6

HATransparentView 0.6

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
Released最新发布2015年12月

Heberti Almeida 维护。




  • Heberti Almeida

基于 Rdio 站点菜单的自定义 UIView 子类。

Demo HATransparentView Demo2 HATransparentView

安装

Podfile

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];

要求

  • iOS 6.0 或更高版本
  • ARC

许可证

HATransparentView 在 MIT 许可下发布。请参阅 LICENSE

联系我

Heberti Almeida

Bitdeli Badge