override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "Share" {
var destViewController = (segue.destinationViewController as! UITableViewController).tableView //Warning
destViewController.labelText = TEXT.text!
//Error = Value of type 'UITableView' has no member 'labelText'
}
Asked
Active
Viewed 550 times
-5

derdida
- 14,784
- 16
- 90
- 139

Sonny Sluiter
- 139
- 2
- 9
2 Answers
0
The reason that you are getting that error is pretty self-explanatory: there is no defined variable "labelText" in the UITableViewController class. What exactly are you trying to accomplish with this code? It is very ambiguous. If you were more clear about what you were trying to do, providing an answer for you would be much easier.

jake
- 124
- 1
- 10