a1anyip / ayvibrantbutton Goto Github PK
View Code? Open in Web Editor NEWA stylish button with iOS 8 vibrancy effect
License: MIT License
A stylish button with iOS 8 vibrancy effect
License: MIT License
Won't compile due to
@import UIKit
it needs to be
#import <UIKit/UIKit.h>
Is this possible? Maybe I'm not seeing it ;)...
Hello,
I added a AYVibrantButton to the contentView of a UITableViewCell. As soon as I tap that cell the button disappears and appears again when the cell is deselected. Any ideas on that?
Best regards,
Roland
One cannot switch quickly between UIButton and AYVibrantButton. Making .text attribute instead of setTitle method doesn't help, just breaks compatibility and adds work if you want switch between implementations.
Title suffices.
When inheriting UIControl
, you don't have these methods to call, so compilation fails:
self.font = self.titleLabel.font;
self.icon = [self imageForState:UIControlStateNormal];
self.text = [self titleForState:UIControlStateNormal];
You'll probably want to figure that out... unless something about my build settings is screwing it up?
AYVibrantButtons are gorgeous, but the non-standard button attributes are a huge drawback. Rather than an AYVibrantButton being a drop-in replacement for a UIButton, users must set the font, title, and title color properties in alternate ways. Worse, because of UIButton's default Auto Layout behavior, I end up having to set these attributes in BOTH the AYVibrantButton ways and the UIButton ways in order to get proper sizing behavior. I end up with code like this:
It would be great if AYVibrantButton pulled these properties from the UIButton's standard implementation rather than providing its own, alternate properties.
Hi there,
Pretty self-explanatory. But when I try using the invert style for a button, it doesn't work in ios8. Any ideas?
I tried removing the code for ios8 but unfortunately that also removes the title of the button itself.
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.