Giter Site home page Giter Site logo

crocodella / pullableview Goto Github PK

View Code? Open in Web Editor NEW
197.0 197.0 54.0 899 KB

UIView subclass that implements pullable behaviour similar to the Notification Center in iOS 5

Home Page: http://www.crocodella.com.br/2012/01/a-pullable-view-implementation-like-notification-center

Objective-C 100.00%

pullableview's People

Contributors

brianmichel avatar capnslipp avatar crocodella 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  avatar  avatar

pullableview's Issues

What is the copyright license?

I'd like to know if you have a specific copyright license on this project. I can assume you allow it to be used in other projects (closed and/or open-source?) based on what you say on your website, "Hope you find it useful!", but I'd like to see a clearer stance on it. Common permissive licenses (which generally require attribution) are BSD (2- or 3-clause) and MIT.

Thanks!

Adding nib breaks PullableView

The following code adds a nib view to PullableView however it does not function after.

For example:

UILabel *pullUpLabel;
pullUpLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 4, 320, 20)];
pullUpLabel.textAlignment = UITextAlignmentCenter;
pullUpLabel.backgroundColor = [UIColor clearColor];
pullUpLabel.textColor = [UIColor lightGrayColor];
pullUpLabel.text = @"Pull me up!";

[pullUpView addSubview:pullUpLabel];

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
label = [[UILabel alloc] initWithFrame:CGRectMake(0, 80, 320, 64)];
label.textAlignment = UITextAlignmentCenter;
label.backgroundColor = [UIColor clearColor];
label.textColor = [UIColor whiteColor];
label.shadowColor = [UIColor blackColor];
label.shadowOffset = CGSizeMake(1, 1);
label.text = @"I only go half-way up!";

[pullUpView addSubview:label];  

NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"advanced_search" owner:self options:nil ];
UIView *mainView = [subviewArray objectAtIndex:0 ];
mainView.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.0];
mainView.opaque = NO;

[pullUpView addSubview:mainView];

Commenting out the last line will make it work again:
[pullUpView addSubview:mainView];

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.