Gypsyan / KGRadioButton

Apache License 2.0
9 stars 7 forks source link

How much longer will this continue to be serviced? #1

Open troy21688 opened 7 years ago

troy21688 commented 7 years ago

Seems to be exactly what I need for a simple radio button solution!

AnanthaKrish commented 7 years ago

I stopped updating it... But you can clone and modify for your requirements..

troy21688 commented 7 years ago

So if I installed the pod right now would it work?

On May 8, 2017 11:21 PM, "Anantha Krishnan K G" notifications@github.com wrote:

I stopped updating it... But you can clone and modify for your requirements..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300057528, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-F6KFkZCteEwbpf6gY6tg5tI5y9Gks5r3-nJgaJpZM4NUv0q .

AnanthaKrish commented 7 years ago

It will..

troy21688 commented 7 years ago

Much appreciated I have successfully implemented it, is there a simple way to ensure that only one button in the group can be clicked?

On Tue, May 9, 2017 at 10:56 AM, Anantha Krishnan K G < notifications@github.com> wrote:

It will..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300210187, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-IneSa70UJMn0cTVIbyKJTf6PqI5ks5r4IyQgaJpZM4NUv0q .

-- Troy Chuinard, CPA

troy21688 commented 7 years ago

Also, is there a way to add text directly adjacent to the radio button?

On Tue, May 9, 2017 at 9:31 PM, Troy Chuinard tccpg288@gmail.com wrote:

Much appreciated I have successfully implemented it, is there a simple way to ensure that only one button in the group can be clicked?

On Tue, May 9, 2017 at 10:56 AM, Anantha Krishnan K G < notifications@github.com> wrote:

It will..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300210187, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-IneSa70UJMn0cTVIbyKJTf6PqI5ks5r4IyQgaJpZM4NUv0q .

-- Troy Chuinard, CPA

-- Troy Chuinard, CPA

AnanthaKrish commented 7 years ago

That you have to write the code ...... @troy21688

troy21688 commented 7 years ago

So there is no simple way to add text?

On May 9, 2017 10:46 PM, "Anantha Krishnan K G" notifications@github.com wrote:

That you have to write the code ...... @troy21688 https://github.com/troy21688

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300365684, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-FqVnl5nsyfLMbtoOhU78nh-ORNyks5r4TMAgaJpZM4NUv0q .

troy21688 commented 7 years ago

It does not appear the .setTitle() method is adding any text to the Radio Button, just wanted to confirm, I do appreciate the library and find the design of the button exactly what I am seeking.

On Wed, May 10, 2017 at 6:06 AM, Troy Chuinard tccpg288@gmail.com wrote:

So there is no simple way to add text?

On May 9, 2017 10:46 PM, "Anantha Krishnan K G" notifications@github.com wrote:

That you have to write the code ...... @troy21688 https://github.com/troy21688

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300365684, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-FqVnl5nsyfLMbtoOhU78nh-ORNyks5r4TMAgaJpZM4NUv0q .

-- Troy Chuinard, CPA

AnanthaKrish commented 7 years ago

@troy21688 I don't know why are you trying to add a text on radio button... you can refer the example how i have added that text label...

For toggling the button , keep the reference of the button object and add isSelected to false

For example

` func manualAction (sender: KGRadioButton) { sender.isSelected = !sender.isSelected button2.isSelected = false if sender.isSelected { label2.text = "Selected" } else{ label2.text = "Not Selected" } } @IBAction func didPressButton(_ sender: KGRadioButton) {

   sender.isSelected = !sender.isSelected
    button.isSelected = false
    if sender.isSelected {
        label.text = "Selected"
    } else{
        label.text = "Not Selected"
    }
}

`

Let me know if you want any help 👍

troy21688 commented 7 years ago

I am simply trying to add a label next to the button. Sorry for the confusion.

On May 11, 2017 6:22 AM, "Anantha Krishnan K G" notifications@github.com wrote:

@troy21688 https://github.com/troy21688 I don't know why are you trying to add a text on radio button... you can refer the example how i have added that text label...

For toggling the button , keep the reference of the button object and add isSelected to false

For example

` func manualAction (sender: KGRadioButton) { sender.isSelected = !sender.isSelected button2.isSelected = false if sender.isSelected { label2.text = "Selected" } else{ label2.text = "Not Selected" } } @IBAction https://github.com/IBAction func didPressButton(_ sender: KGRadioButton) {

sender.isSelected = !sender.isSelected button.isSelected = false if sender.isSelected { label.text = "Selected" } else{ label.text = "Not Selected" } }

`

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Gypsyan/KGRadioButton/issues/1#issuecomment-300760509, or mute the thread https://github.com/notifications/unsubscribe-auth/APuF-M5ZUtTZz-B4rvutsODlUhx9QO81ks5r4u98gaJpZM4NUv0q .

AnanthaKrish commented 7 years ago

You can add a label and try @troy21688