marinofaggiana 4 년 전
부모
커밋
b797366bde
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      iOSClient/More/NCMore.swift

+ 4 - 4
iOSClient/More/NCMore.swift

@@ -422,10 +422,10 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
 
             let nameStoryboard = item.url.replacingOccurrences(of: "openStoryboard", with: "")
             let storyboard = UIStoryboard(name: nameStoryboard, bundle: nil)
-            let controller = storyboard.instantiateInitialViewController()! //instantiateViewController(withIdentifier: nameStoryboard)
-            
-            controller.modalPresentationStyle = UIModalPresentationStyle.pageSheet
-            self.present(controller, animated: true, completion: nil)
+            if let controller = storyboard.instantiateInitialViewController() {
+                controller.modalPresentationStyle = UIModalPresentationStyle.pageSheet
+                present(controller, animated: true, completion: nil)
+            }
 
         } else if item.url.contains("//") {