[英]While dismissing from one storyboard to other story board, its dismissing very lately in swift
由於兩個人在同一個項目中工作,因此我使用了兩個情節提要文件,為避免合並情節提要文件時發生沖突,我們使用了兩個情節提要文件。
但是,問題是從一個情節提要文件導航到其他工作正常,而在將另一個情節提要文件撤消給其他人時,這需要花費時間,而且最近也被解雇了。
用於將時間從1加載到另一個情節提要
let mainStoryboard: UIStoryboard = UIStoryboard(name: "ListViewController", bundle: nil)
let viewController = mainStoryboard.instantiateViewController(withIdentifier: "ListViewController") as! ListViewController
self.present(viewController, animated:true, completion: nil)
我正在使用以下代碼關閉情節提要
self.dismiss(animated: false, completion: nil)
任何避免此問題的建議。
我修復了此問題,此問題的發生是由於以前的viewcontroller調用了Webservice,因此,它花了幾秒鍾的時間來調用數據,因此,花了很長時間才能消除數據。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.