Latest 0.6
Homepage https://github.com/hebertialmeida/HATransparentView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

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

pod 'HATransparentView'

Usage

  • 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 ()


 * Define:
```objective-c
@property (strong, nonatomic) HATransparentView *transparentView;
  • Default open:

    _transparentView = [[HATransparentView alloc] init];
    _transparentView.delegate = self;
    _transparentView.tapBackgroundToClose = YES;
    _transparentView.hideCloseButton = YES;
    [_transparentView open];
  • Close:

    [_transparentView close];
  • Delegate:
    - (void)HATransparentViewDidClosed
    {
    NSLog(@"Did close");
    }

Custom

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

Bitdeli Badge

Latest podspec

{
    "name": "HATransparentView",
    "version": "0.6",
    "summary": "UIView transparent subclass based on Rdio stations menu.",
    "homepage": "https://github.com/hebertialmeida/HATransparentView",
    "screenshots": "https://raw.githubusercontent.com/hebertialmeida/HATransparentView/master/HATransparentViewDemo/Images.xcassets/1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Heberti Almeida": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hebertialmeida/HATransparentView.git",
        "tag": "0.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "Classes",
        "HATransparentView/*.{h,m}"
    ],
    "resources": "HATransparentView/images/*.png",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This