**When i click the cell.**  

I want to transfer the image and string in chosen's cell by segue.  

I try to use "func prepareforsegue".  

And i don't know how to write.  

Please help me. 

Here's the tableview func: 

```
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    //
    let cellIdentifier = "Cell"
    let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as! DiscoverTableViewCell

    //set cell
    let restaurant = restaurants[indexPath.row]
    cell.nameLabel.text = restaurant.objectForKey("name") as? String
    cell.typeLabel.text = restaurant.objectForKey("type") as? String
    cell.locationLabel.text = restaurant.objectForKey("location") as? String

    //set default image
    cell.bgImageView.image = nil

    //check image in chche or not
    if let imageFileUrl = imageCache.objectForKey(restaurant.recordID) as? NSURL {
        //get image from cache
        print("Get image from cache")
        cell.bgImageView.image = UIImage(data: NSData(contentsOfURL: imageFileUrl)!)
    }else {      
    //get data from cloudkit in background
    let publicDatabase = CKContainer.defaultContainer().publicCloudDatabase
    let fetchRecordsImageOperation = CKFetchRecordsOperation(recordIDs:[restaurant.recordID])
    fetchRecordsImageOperation.desiredKeys = ["image"]
    fetchRecordsImageOperation.queuePriority = .VeryHigh

    fetchRecordsImageOperation.perRecordCompletionBlock = { (record:CKRecord?, recordID:CKRecordID?, error:NSError?) -> Void in
        if (error != nil){
            print("Fail to get restaurant image: \(error!.localizedDescription)")
            return
        }

        if let restaurantRecord = record {
            NSOperationQueue.mainQueue().addOperationWithBlock(){
                if let imageAsset = restaurantRecord.objectForKey("image") as? CKAsset {
                    cell.bgImageView.image = UIImage(data: NSData(contentsOfURL: imageAsset.fileURL)!)

                    // Add the image URL to cache
                    self.imageCache.setObject(imageAsset.fileURL, forKey: restaurant.recordID)
                }
            }
        }
    }
    publicDatabase.addOperation(fetchRecordsImageOperation)
  }

    return cell
}

```