1

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

Community
  • 1
  • 1

1 Answers1

0

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 .

Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49