title: OC call one swift function which returns an int array, but can not accept its element with an int variable
body: <p>I write a swift function which return an int array and call it in objective-c. But i can not assign the element of the return array to an int variable. (TotalRoute is an int array in swift)</p>
  
  <p>This is the function in class GetRoute</p>
  
  <pre><code>func returnTotalRouteX()-&gt;[Int]{
      println("call returnTotalRouteX")
      var routeX = [Int]()
      for item in totalRoute{
          routeX.append(nodeData[item]!.xPosition)
      }
      println(totalRoute)
      println(routeX)
      return routeX
  }
  </code></pre>
  
  <p>Then i call this in objective-c </p>
  
  <pre><code>    GetRoute *h = [[GetRoute alloc] init];
  
  if (h.returnTotalRouteX.count == 0) {
      NSLog(@"it is empty");
  }
  else{
      NSLog(@"%@",h.returnTotalRouteX);
      NSLog(@"%@",h.returnTotalRouteX[0]);
      NSLog(@"it is not empty");
  }
  </code></pre>
  
  <p>I could only write NSLog(@"<strong>%@</strong>",h.returnTotalRouteX[0]);. If i write NSLog(@"<strong>%d</strong>",h.returnTotalRouteX[0]); or i assign h.returnTotalRouteX[0] to an int variable, the answer is not what i want. How can i get the int value?</p>