Open troy21688 opened 7 years ago
I stopped updating it... But you can clone and modify for your requirements..
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 .
It will..
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
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
That you have to write the code ...... @troy21688
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 .
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
@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 👍
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 .
You can add a label and try @troy21688
Seems to be exactly what I need for a simple radio button solution!