2013-01-09 74 views
0

我需要證明從below.Can人給出的json一個radiobutton建議我如何展示多個options.The選項radiobuttonjson還提供。如何在IOS一個單選按鈕

[{"cssClass":"radio","values":"Radio 1","fieldsize":"null","required":"undefined","prevalue":"undefined","autocaps":"none","fieldesc":" ","options":"Choice1,Choice2,Choice3,Choice,Choice"},{"cssClass":"radio","values":"Radio2","fieldsize":"null","required":"undefined","prevalue":"undefined","autocaps":"none","fieldesc":" ","options":"Choice3,Choice4,Choice5,Choice"},{"cssClass":"radio","values":"Radio3","fieldsize":"null","required":"undefined","prevalue":"undefined","autocaps":"none","fieldesc":" ","options":"Choice6,Choice7,Choice8,Choice"}] 

回答

1

你可以拍兩張圖片(一張裏面有圓點,一張沒有圓點)。在UIControlstateselected和UIControlstateNormal的某些IBAction方法中,將這些圖像實用地定義爲自定義按鈕。

+0

還設置了一些整數值並在您的操作中檢查值。例如,當您單擊第一次時,而不是將整數值更改爲1,並且當您再次單擊相同的按鈕而不是將其更改爲0時。 – Ketan

相關問題