title: What does "cannot invoke initializer for type 'Int' with an argument list of type 'UITextField' " mean?
body: <p>In my app, I have a string of code that is <code>lrs24 = (30 * Int(weight)! + 70) * Int(factor)!;</code>. It seems like it's all OK, but the compiler says that it "cannot invoke initializer for type 'Int'  with an argument list of type 'UITextField' ". What does this mean, and how can I fix it? Thanks!</p>
  
  <p><strong>PS-</strong> Here is <em>all</em> my code-</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController, UITextFieldDelegate {
  
  @IBOutlet weak var animalNum: UITextField!
  @IBOutlet weak var logLabel: UILabel!
  @IBOutlet weak var resetButton: UIButton!
  
  
  @IBOutlet weak var weight: UITextField!
  @IBOutlet weak var deh: UITextField!
  @IBOutlet weak var losses: UITextField!
  @IBOutlet var factor: [UITextField]!
  
  @IBOutlet weak var lrs24: UILabel!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      // Handle the text field’s user input through delegate callbacks.
      animalNum.delegate = self
  }
  
  // MARK: UITextFieldDelegate
  
  func textFieldShouldReturn(textField: UITextField) -&gt; Bool {
      // Hide the keyboard.
      textField.resignFirstResponder()
      return true
  }
  
  func textFieldDidEndEditing(textField: UITextField) {
      logLabel.text = textField.text
  }
  
  // MARK: Actions
  @IBAction func setDefaultLabelText(sender: UIButton) {
      logLabel.text = "Default Text"
  }
  
  
  @IBAction func textFieldsDidEndEditing(sender: AnyObject) {
      lrs24 = (30 * Int(weight)! + 70) * Int(factor)!;
      //+ Int(weight)! * Int(deh)! * 10 + Int(losses)!
  
  
  
      //(30 * &amp;weight + 70) * &amp;factor + &amp;weight * &amp;deh * 10 + &amp;losses
  }
  
  }
  </code></pre>