I am using collection view, after collection view loaded if you click on any cell first time, click is not working.. If you click on another cell then the click is working.. It is happening when collection is loaded freshly.
I am using navigation controller and loading anther view using following code:
let storyboard = UIStoryboard(name: "StoryBoard", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("ControllerID") as! UIViewController self.navigationController?.pushViewController(controller, animated: true)
If we selected one cell and navigate to next view, when coming back to collection view, the previously selected element is not getting deselect.. So that click is not working on that cell. It is working if you click on another cell and come back and click on that.