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