私はすぐにSSRadioButtonsControllerをXcodeに埋め込みました。これをUIAlertView
にいくつかのテキストで表示します。ラジオボタンのスウィフト
私はこれをしましたが、全く動作しません。
@IBAction func infoClicked(sender: UIButton) {
self.displayAlert("My Health Action Plan Detail", message: "A Health Action Plan is personal plan describing what you need to do to stay healthy. Using the plan can help you focus your health activities.")
var radioButtonController = SSRadioButtonsController()
radioButtonController.setButtonsArray([button1!,button2!,button3!])
var currentButton = radioButtonController.selectedButton()
}
私は@mattはあなたがUIAlertViewまたはUIAlertControllerをインターフェースに追加することはできません言ったようにアラートビューに並んでテキストを
UIAlertViewをインターフェイスに追加することはできません。いずれの場合も、UIAlertViewは完全に無効です.UIAlertControllerを使用する必要があります。しかし、_your_の場合は、カスタム表示のView Controllerを使用する必要があります。 – matt
私はそれを持っています。しかし、ラジオボタンを追加するのを手伝ってください:) –