title: Swift Programming
body: <p>I am beginner of swift language. I am getting this error:</p>
  
  <pre><code>Error: Any object does not have member named subscript.
  </code></pre>
  
  <p>Can any one give solution for this?</p>
  
  <p>My code:</p>
  
  <pre><code>        controller! = UIAlertController(title: "Welcome", message: "Hi...", preferredStyle: .Alert)
  
          let action = UIAlertAction(title: "Please enter atleat 10 characters", style: UIAlertActionStyle.Default, handler: {[weak self] (paramAction:UIAlertAction!) in
  
              let userName = self!.controller!.textFields[0].text
              println("your username is \(userName)")
          })
  
          controller!.addTextFieldWithConfigurationHandler({(textField:UITextField!) in
              textField.placeholder = "XXXXX-XXXXX"
          })
  </code></pre>