Code Monkey home page Code Monkey logo

hatransparentview's Introduction

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

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 () <HATransparentViewDelegate>
  • Define:
@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

hatransparentview's People

Contributors

bitdeli-chef avatar hebertialmeida avatar nickevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hatransparentview's Issues

Add option to choose close button position

It would be great to have an option to choose the position of the close button. Eg. I can choose to change the position of the close button to top left corner instead of the default top right. ๐Ÿ˜„

Fails to remain open over top of UITableViewController

I have noticed that when implementing HATransparentView on top of a UITableViewController, the view will remain open for a few seconds, or not open at all.

Has this issue been previously mentioned, and is there a possible work around?
Thanks :)

Status bar issue

Status bar style should be saved in 'open' method and restored in 'close' method
Now when calling 'close' status bar style set to default

Not Showing After Modal Transition

If I open a view with the HATransparentView integrated and open it, it works. But if I then navigate away using a modal transition and navigate back using a modal and press the open button, the HATransparentView doesn't show. In fact it seems to be hidden behind the main view, even though it was initially on top.

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.