Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCellWithIdentifier("Cell_Monday")
- let messageSnapshot: FIRDataSnapshot! = conf[indexPath.row]
- let message = messageSnapshot.value as! Dictionary<String, String>
- // print(message)
- let label1 = cell?.viewWithTag(1) as! UILabel
- label1.text = message["title"]
- let label2 = cell?.viewWithTag(2) as! UILabel
- label2.text = message["place"]
- let label3 = cell?.viewWithTag(3) as! UILabel
- label3.text = message["date"]
- return cell!
- }
- override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
- let messageSnapshot: FIRDataSnapshot! = conf[indexPath.row]
- let message = messageSnapshot.value as! Dictionary<String, String>
- let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
- let monDetails = storyBoard.instantiateViewControllerWithIdentifier("mondayDetails") as! MondayViewController
- monDetails.title = message["title"]
- monDetails.conferenceDetailDict = message
- self.navigationController?.pushViewController(monDetails, animated: true)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement