Hallo liebe Swift Profis,
was mache ich bitte falsch bzw was ist falsch das mir meine app die berechnung nicht nach der eingabe in die textfelder macht?
Alles anzeigen
die debug console gibt mir das hier aus:
2016-01-03 22:35:41.029 Zimmerei und Holzbau[5917:4003335] Can't find keyplane that supports type 8 for keyboard iPhone-Portrait-DecimalPad; using 4131139949_Portrait_iPhone-Simple-Pad_Default
LG matze
was mache ich bitte falsch bzw was ist falsch das mir meine app die berechnung nicht nach der eingabe in die textfelder macht?
Quellcode
- func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
- myLabel.text = pickerDataSource[row]
- if(row == 0)
- {
- // Traufehö-Vordach-Neigung
- grdmaß.enabled = true
- grdmaß.backgroundColor = UIColor.whiteColor();
- frsthö.enabled = true
- frsthö.backgroundColor = UIColor.whiteColor();
- trfhö.enabled = true
- trfhö.backgroundColor = UIColor.whiteColor();
- vrdalä.enabled = true
- vrdalä.backgroundColor = UIColor.whiteColor();
- dchng.enabled = true
- dchng.backgroundColor = UIColor.whiteColor();
- okfpf.enabled = false
- okfpf.backgroundColor = UIColor.groupTableViewBackgroundColor();
- okfipf.enabled = false
- okfipf.backgroundColor = UIColor.groupTableViewBackgroundColor();
- func txtEditingChanged(sender: UITextField) {
- if grdmaß.editing && frsthö.editing {
- if grdmaß.text!.isEmpty && frsthö.text!.isEmpty {
- grdmaß.text = "0"
- frsthö.text = "0"
- }
- let txt1 = str2float(grdmaß.text!)
- let txt2 = str2float(frsthö.text!)
- let a = txt1 * txt2
- okfpf.text = "\(a)"
- }
- }
- }
2016-01-03 22:35:41.029 Zimmerei und Holzbau[5917:4003335] Can't find keyplane that supports type 8 for keyboard iPhone-Portrait-DecimalPad; using 4131139949_Portrait_iPhone-Simple-Pad_Default
LG matze