This content has been marked as final.
Show 3 replies
-
Re: How to avoid tabbing a button will block all UI Text Fields?
KMT May 31, 2019 8:26 AM (in response to garrett35)Show some code? What kind of app? Game? Which APIs are you using?
Curious about focus w/the 'start' session sequence... Might just be a matter of order since it doesn't appear to be an otherwise normal input form.
-
Re: How to avoid tabbing a button will block all UI Text Fields?
garrett35 May 31, 2019 8:36 AM (in response to KMT)It's a "Singe View App" for iPad.
There is not much code to show but this basically is what the app should do:
import UIKit class ViewController: UIViewController { let theText = "Hello" var count = 0 @IBOutlet weak var Text: UILabel! @IBOutlet weak var Input: UITextField! @IBAction func Start(_ sender: Any) { while count < theText.count { Input.isEnabled = true //this line is not working! if Input.text == theText { print("yey") count += 1 } } } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. }
1. User start the app
2. User tab "Start"-Button
3. User want to type in something in Input, which is at this time just disabled
-
Re: How to avoid tabbing a button will block all UI Text Fields?
garrett35 Jun 8, 2019 6:04 AM (in response to garrett35)Do you have any further ideas?
-
-