mattlawer / bbutton Goto Github PK
View Code? Open in Web Editor NEWBButton is a subclass of UIButton that looks like the bootstrap buttons.
License: Other
BButton is a subclass of UIButton that looks like the bootstrap buttons.
License: Other
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
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?
In iOS 6.0 it crashes when you click on a button and it tries to handle the down state of the button. It can't get the number of components from the color.
I didn't figure out how I can set button type via Interface Builder, maybe it is not even possible, I don't know, but it should be mentioned.
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?
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.
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?
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.
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?
Hi,
The call to CGGradientCreateWithColors causes a memory leak. One solution would be to move the code into the drawing routine and call CGGradientRelease there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.