var x = ActnTxBx
var y = 1...1000000000000
func CFUperMLcalc(_: y, _: x);, -> y {
400000000000(x)
}
print y
}
cannot understand error code as "expected declaration." When I change or edit I can not determine y. Must I place number in ActnTxBx, I can not run simuator because of error. I have done similar math in playground and it gives correct output. If one needs more of the view controller, I will past later, this is where the error is. The func line. Nobody is posting similar. I have "current versions" of X-code and Beta X-code. I am trying to use X-code and SWIFT. Iphone 5 App. I have watched a YouTube video on textbox and may need to rename.
Well here's the whole view controller, maybe this will help:
/
/
/
/
/
/
/
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var ImageBckgrnd: UIImageView!
@IBOutlet weak var AbsTxBx: UITextField!
@IBOutlet weak var CFUperML: UIImageView!
@IBOutlet weak var ClearButton: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
/
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
/
}
@IBAction func ActnTxBx(sender: UITextField) {
}
var x = ActnTxBx
var y = 1...1000000000000
func CFUperMLcalc(_: y, _: x);, -> y {
400000000000(x)
}
print y
}