I'm getting this error in "RoomTableViewController.swift", this is the prepare for segue function to go from this TVC to another one called ItemTableViewController
I tried checking my segue identifiers thinking there is a problem with it but no luck! I also tried other solutions on stackoverflow.
I had it working earlier, but I don't know what I did to break it. The error is:
value of type 'ItemTableViewController' has no member 'selectedRoom'
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "segueRoomTVC" {
//Figure out which row was tapped
if let row = tableView.indexPathForSelectedRow?.row {
let tappedProperty = Property.getAllProperties()[row] as! Property
//Figure out the destination viewController
let roomTVC = segue.destinationViewController as! RoomTableViewController
//Pass the object for that row to the next viewController
I'm getting the error here ---> roomTVC.selectedProperty = tappedProperty
}
}
}
Let me know if you need more of my code to be submitted here