Hyacinth / HATransparentView

UIView transparent subclass based on Rdio stations menu.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HATransparentView

Custom UIView subclass based on Rdio stations menu.

Demo HATransparentView Demo2 HATransparentView

Install

Installation with CocoaPods

CocoaPods is the best way to manage library dependencies in Objective-C projects.

Podfile

platform :ios
pod 'HATransparentView', '~> 0.2'

Usage

  1. Add Key value to info.plist: View controller-based status bar appearance, NO

  2. Import the header file wherever you want to use the HATransparentView:

#import "HATransparentView.h"
  1. Define:
@property (strong, nonatomic) HATransparentView *transparentView;
  1. Default open:
_transparentView = [[HATransparentView alloc] init];
[_transparentView open];
  1. Close:
[_transparentView close];

Custom

  1. Custom background:
_transparentView = [[HATransparentView alloc] init];
_transparentView.backgroundColor = [UIColor colorWithRed:242/255.0 green:46/255.0 blue:50/255.0 alpha:0.9];
[_transparentView open];
  1. Custom status bar (iOS 7) and close button with HAStyleBlack, default is HAStyleLight:
_transparentView = [[HATransparentView alloc] init];
_transparentView.style = HAStyleBlack;
[_transparentView open];

Requirements

  • iOS 6.0 or higher
  • ARC

License

HATransparentView is released under the MIT license. See LICENSE.

Contact me

Heberti Almeida

Contact: hebertialmeida@gmail.com

Twitter: http://twitter.com/hebertialmeida

About

UIView transparent subclass based on Rdio stations menu.

License:MIT License