Всплывающее окно не указывает на кнопку

У меня есть приложение, которое совместимо с макетами iPhone и iPad. Для макета iPhone я создал Action Sheet и Pop over для iPad. Проблема в том, что стрелка не отображается над кнопкой, которую я нажал. Ниже мой код ....

let actionSheet = UIAlertController(title: "Choose an option",
            message: "Message",
            preferredStyle: .ActionSheet)
...

if UIDevice.currentDevice().userInterfaceIdiom == UIUserInterfaceIdiom.Pad
{
     // for iPad
     actionSheet.popoverPresentationController?.sourceView = self.view
     actionSheet.popoverPresentationController?.sourceRect = self.view.bounds;
     actionSheet.popoverPresentationController?.permittedArrowDirections = UIPopoverArrowDirection.allZeros;
}

self.presentViewController(actionSheet, animated: true, completion: nil)

Ответы на вопрос(3)

Ваш ответ на вопрос