Coder Social home page Coder Social logo

bbutton's Issues

BButton and autolayout

BButton doesn't seem to work correctly when using auto layout.

Below are the button as laid out in Interface Builder and the resulting BButton instance in my app. As you can see the button is hugging the dimensions of the button label instead of using the correct dimensions.

Screen Shot 2013-03-27 at 17 05 22

Screen Shot 2013-03-27 at 17 08 51

SIG Abort after download and compile

I've just downloaded the bbutton and it compiles without problem. But when I click, it crashes.

Impossible to undestand why for the moment.

Debug gives me a crash on
UIColor* border = [self darkenColor:_color value:0.06];
in drawRect of BButton.m and says that _color is not of type UIColor and so it doesn't recognize the .CGColor

No "Disabled" State

When I set .enabled = NO on a BButton, it no longer accepts touch events but it isn't obvious to the user that the button is disabled. I was imagining slightly greying out the current button color, similar to other controls.

Is this a bug or do we need to write it?

imageView

I'm trying to set and image icon on these, and I'm getting some odd results. Looks like when I set the imageView with and image... it takes up the left half of the button and the titleLabel gets pushed to the right and truncated the middle. Am I doing something wrong here?

How to properly update awesomeIcon?

I have a BButton, acting as a toggle, that utilizes the FAPlay icon before pressed, but when pressed, wants to switch to the FAStop icon. Using

- (void)addAwesomeIcon:(FAIcon)icon beforeTitle:(BOOL)before

simply adds a new icon to the existing button.

What's the recommended way of changing the button icon? instantiate a new button? I'm in the middle of creating a new API call, updateAwesomeIcon, but want to make sure there's not a better recommended way of doing this.

FA icons always appear as white rectangle

No matter what instantiation I use or what FontAwesome icon or BButtonType I always get a simple empty white rectangle as an icon in the GUI of the Simulator or on the iPhone for the BButton I create.

e.g.:
BButton *button = [BButton awesomeButtonWithOnlyIcon:FAIconTwitter type:BButtonTypeInverse];
[self.view addSubview:button];

What am I doing wrong?

iOS 7 style BButton

BButton works fine, but has anyone done an iOS 7 style modification yet? A flatter version (without the border shadow effects), like the buttons seen in iOS 7 phone app during a call.

Numbers + FontAwesome Don't Render Correctly

I don't know if this is really an issue with BButton as much as it's with FontAwesome, but I wasn't sure where I would bring this up in that case. It seems when using an icon along with text, numbers in the text get rendered strangely and without a shadow. Is this an issue with the FA font itself or something that can be fixed?

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.