I am tried to search & solve this problem please any one give solution of this problem. Actually, i am using collection view & also table view in my app but in case of push to other view by didselect of both view(collection view & also table view) viewdidload of 2nd view take time for call. I have also check out by break point didselect call suddenly but viewdidload of 2nd view take time for call than start working of 2nd view.
"Code of didselect"
let dict = self.arr.objectAtIndex(indexPath.row) as! NSMutableDictionary
let 2ndview = self.storyboard?.instantiateViewControllerWithIdentifier("2ndview") as! viewcontroller
2ndview.dict = dict
self.navigationController?.pushViewController(2ndview, animated: true)
"Code of 2nd viewdidload" viewdidload
tbl.delegate = self
tbl.dataSource = self
tbl.separatorStyle = .None
btn.hidden = true
tf.delegate = self
i think you have some memory issue so check your memory uses while you change controller . and in your build setting Code Generation optimize level value is fastest or not ? check this .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.