0

I want to place my app icon into an alert controller above the alertTitle - same as for the alert that opens if an app review is called by SKStoreReviewController.requestReview().

I have not found any documentation about it.

So, what to do with the code below to let the App Icon appear?


let alertController = UIAlertController(title: alertHeaderText, message: alertText, preferredStyle: UIAlertController.Style.alert)


let option1: UIAlertAction = UIAlertAction(title: "text", style: .default, handler: {
            (action) in

            // some code

        })

let option2: UIAlertAction = UIAlertAction(title: "text", style: .default, handler: {
            (action) in

            // some code 

        })


alertController.addAction(option1)
alertController.addAction(option2)


self.present(alertController, animated: true, completion: nil)

Dirk
  • 25
  • 8
  • 1
    I don’t think this is possible... I think you have to build a fully custom UI to do this. – Charlie Fish Apr 28 '19 at 16:20
  • I guess you should create a custom alert , see more : https://medium.com/if-let-swift-programming/design-and-code-your-own-uialertview-ec3d8c000f0a – mohsen Apr 28 '19 at 17:14
  • but check it too , probably it works for you : https://code.tutsplus.com/tutorials/create-a-custom-alert-controller-in-ios-10-swift-3--cms-27589 – mohsen Apr 28 '19 at 17:15
  • Thanks for this link. I will try in the future... – Dirk Apr 30 '19 at 18:33

0 Answers0