-5
 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'


    }
derdida
  • 14,784
  • 16
  • 90
  • 139
Sonny Sluiter
  • 139
  • 2
  • 9

2 Answers2

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
0

I think you want to use textLabel instead of labelText

Dan Levy
  • 3,931
  • 4
  • 28
  • 48