Giter VIP home page Giter VIP logo

radiobutton-ios's People

Contributors

onegray 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  avatar  avatar

radiobutton-ios's Issues

Unable to install Pod. Missing PodSpec?

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?

Add a sort of index method

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

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];
}

pod install ?

It's possible to add your project with pod install ?

Selection bug!

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];

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.