UIAlertController inside alert shows error iOS swift
Solution:
If you had multiple UIAlertController then it will shows error.Then follow the below step.
Add extra UIKit that will be for additional alert.
let alertReplace = UIAlertController(title: AppTitle, message: messageToshow, preferredStyle: .alert)
let okReplaceAction = UIKit.UIAlertAction(title: "YES", style: UIKit.UIAlertAction.Style.dest
UIAlertAction in
// add the action here
}
let cancelReplaceAction = UIKit.UIAlertAction(title: "NO", style: UIKit.UIAlertAction.Style.canc
UIAlertAction in
}
alertReplace.addAction(
alertReplace.addAction(
view.present(
Comments
Post a Comment