0
Xcodeの1つのViewControllerに複数のSegmentedControlsをロードしようとしています。以下はボタンです。 複数のSegmentedControlをViewControllerにロードする方法
ボタンの1つをクリックすると、SegmentedControlをロードします。
これらのSegmentedControlsはViewControllerにロードされます。それを実現させる方法はありますか?
私の現在のコードは以下のようになります。
@IBAction func action(_ sender: Any) {
//let url = URL(string: sender.accessibilityIdentifier!)!
let alertController = UIAlertController(title: (sender as AnyObject).accessibilityLabel, message: (sender as AnyObject).accessibilityHint, preferredStyle: .actionSheet)
let HSAction = UIAlertAction(title: "Upper Building", style: .default) { action in
DispatchQueue.main.async {
self.performSegue(withIdentifier: "one", sender: nil)
}
//UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
alertController.addAction(HSAction)
}