Fix crash on iPad share
This commit is contained in:
Родитель
9b84e6f37c
Коммит
8c59ae8983
|
@ -40,6 +40,10 @@ class GetDeviceIdViewController: CenterViewController {
|
|||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0))
|
||||
{
|
||||
let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
|
||||
if UIDevice.currentDevice().userInterfaceIdiom == .Pad{
|
||||
activityVC.popoverPresentationController?.sourceView = self.ibShareButton
|
||||
activityVC.popoverPresentationController?.sourceRect = self.ibShareButton.bounds
|
||||
}
|
||||
activityVC.completionWithItemsHandler = { (activityTypeString, completed, items, error) in
|
||||
if completed == true && error == nil{
|
||||
if (activityTypeString == UIActivityTypeCopyToPasteboard){
|
||||
|
|
Загрузка…
Ссылка в новой задаче