This might end up being a really simple thing but I've been pondering over it for half and hour.
I have an Image View on a View Controller. From there I Modal to a Collection View with Images. I want to select an image from the Collection View and have it show up on the Image View on the first View Controller.
I can get to Collection View and get the indexPath but can't figure out what to do next.
class ImageCollectionViewController: UIViewController, UICollectionViewDelegate,UICollectionViewDataSource {
func collectionView(collectionView: UICollectionView!, didSelectItemAtIndexPath indexPath: NSIndexPath!) {
self.dismissModalViewControllerAnimated(true)
}