TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2015 |
Maintained by Heberti Almeida.
Custom UIView
subclass based on Rdio stations menu.
pod 'HATransparentView'
Add Key value to info.plist: View controller-based status bar appearance
, NO
Import the header file wherever you want to use the 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
, default is HAStyleLight
:_transparentView = [[HATransparentView alloc] init];
_transparentView.style = HAStyleBlack;
[_transparentView open];
HATransparentView is released under the MIT license. See LICENSE.
Heberti Almeida