Giter Club home page Giter Club logo

Comments (4)

DavydLiu avatar DavydLiu commented on June 14, 2024

I know there are other developers use it in UIScrollView and it works well. Can you provide an example?

from dlradiobutton.

guidev avatar guidev commented on June 14, 2024

never mind, my fault. I don't know how but it was outside of the scrollview content (still visible though)

from dlradiobutton.

guidev avatar guidev commented on June 14, 2024

I have another question...

I need only one button, but once I tap on it, it stays selected, even if I tap on it again.
Is this the intended behavior?

from dlradiobutton.

DavydLiu avatar DavydLiu commented on June 14, 2024

Yes, this is intended behavior for all radio buttons. You can only deselect by selecting other buttons. However, if you do want to toggle button's selection state by tapping. You can do this programmatically (basically, check if button is selected when received touch event, if selected set selected to NO and vise versa. e.g. radioButton.selected = !radioButton.selected).

from dlradiobutton.

Related Issues (20)

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.