title: Unable to Pass Data Between Interface Controllers
body: <p>I'm having a problem passing a string to a new interface controller in my WatchKit app. The segue to the new interface controller is hooked up in the storyboard from the table row. Here is my code for the selection of a table row:</p>
  
  <pre><code>  var selectedElement: String!
    override func table(table: WKInterfaceTable, didSelectRowAtIndex rowIndex: Int) {
      switch rowIndex{
      case 0:
          selectedElement = menuElements.objectAtIndex(0) as! String
      case 1:
          selectedElement = menuElements.objectAtIndex(1) as! String
      case 2:
          selectedElement = menuElements.objectAtIndex(2) as! String
      default:
          break
      }
  }
  </code></pre>
  
  <p>Then I am using this method to pass the selectedElement variable as the context:</p>
  
  <pre><code>  override func contextForSegueWithIdentifier(segueIdentifier: String) -&gt; AnyObject? {
      return selectedElement
   }
  </code></pre>
  
  <p>In my SecondInterfaceController class, I am trying to use this code to display the context string in a label:</p>
  
  <pre><code>override func awakeWithContext(context: AnyObject?) {
      super.awakeWithContext(context)
      label.setText(context as? String)
   }
  </code></pre>
  
  <p>This produces a blank label, and I also tried printing the context to the console, and it returned nil.</p>
  
  <p>Thanks in advance for your help.</p>