onegray / radiobutton-ios Goto Github PK
View Code? Open in Web Editor NEWLightweight RadioButton class for iOS
License: MIT License
Lightweight RadioButton class for iOS
License: MIT License
Hey OneGray,
I'm having an issue installing the RadioButton pod. Getting this error with "Pod update":
[!] 'Unable to find a specification for RadioButton
'
I noticed that in the repo, there is no more .PodSpec file. Did this recently change?
Hi guy,
I cannot setTitle for this custom button in my code.
How can I do that? Could you please explain more for us?
Thanks
I want to use this library for Swift4 is it compatible?
Hi
I use two radio buttons but in storybroard i can't show group buttons when to drag radiobutton1 to radiobutton2
Please help me
Most of the time instead of a label you need to map the index of a selected radio button.
Right now, as a workaround, I added this swift extension:
extension RadioButton {
func index() -> Int {
for (index, element) in enumerate(self.groupButtons) {
if element.isEqual(self) {
return index
}
}
return -1
}
}
´´´
deselect is not active if you want deselect you should replace code with this
OLD CODE -(void) onTouchUpInside
{
[self setSelected:YES distinct:YES sendControlEvent:YES];
}
NEW CODE -(void) onTouchUpInside
{
[self setSelected:!self.selected distinct:YES sendControlEvent:YES];
}
It's possible to add your project with pod install ?
Hey there seems like a bug in the
-(void) setSelected:(BOOL)selected method.
Instead of [rb super_setSelected:selected]; it should rather be [rb super_setSelected:NO];
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.