title: Expected argument type Selector [Swift]
body: <p>I'm wanting to build a menu interface programically by setting up a <code>for</code> loop inside my main view controller which creates a bunch of buttons from a custom button class.</p>
  
  <p>There are a few parameters I am passing to the button class, one of those is the action parameter for the <code>addTarget</code> function.</p>
  
  <pre><code>self.addTarget(self, action: #selector(*****?*****), for: .touchUpInside)
  </code></pre>
  
  <p>I tried setting up an array of strings to pass to it but I get an error:</p>
  
  <blockquote>
    <p>Cannot convert value of type 'String' to expected argument type 'Selector'</p>
  </blockquote>
  
  <p>I tried creating an array of type <code>Any</code> but the array values for the segue calls are confusing the compiler. So what kind of array can I make that can pass the type which is required by the #selector?</p>
  
  <p><strong><em>Issue</em></strong></p>
  
  <p>// Array declaration<br>
  var segueArray: [(Void)] = []</p>
  
  <p>// Array initialisation</p>
  
  <p>segueArray = [segueToDice1, segueToDice2, segueToDice3]  </p>
  
  <p>error Cannot assign value of type '[() -> ()]' to type '[(Void)]'</p>