Я пытаюсь сделать таблицу действий, как показано в приложении сообщений на iOS, когда мы пытаемся прикрепить изображение, как на скриншоте.
Я понял в новом UIAlertController, мы не можем соответствовать никаким пользовательским представлениям. Как я могу это сделать?
Мой код выглядит довольно стандартным.
let alertController = UIAlertController(title: "My AlertController", message: "tryna show some images here man", preferredStyle: UIAlertControllerStyle.ActionSheet)
let okAction = UIAlertAction(title: "oks", style: .Default) { (action: UIAlertAction) -> Void in
alertController.dismissViewControllerAnimated(true, completion: nil)
}
let cancelAction = UIAlertAction(title: "Screw it!", style: .Cancel) { (action: UIAlertAction) -> Void in
alertController.dismissViewControllerAnimated(true, completion: nil)
}
alertController.addAction(okAction)
alertController.addAction(cancelAction)
self.presentViewController(alertController, animated: true, completion: nil)