Hello all
I have a view with several textfields on it that I want to test for nullstrings when a user presses a button.
Currently I have several if statements that check this, but I was wondering how you would use the "for each" looping to cycle through them all instead and cut down on code.
Does the view conform to a hierarchical structure so that, for example, the textfields are contained within the view? If this is the case then I perceived it to be something like:
foreach(UITextView in UIView) {
............code here......
}
Is this correct - how would it actually be written?
Many thanks for any help.
Cheers.
I have a view with several textfields on it that I want to test for nullstrings when a user presses a button.
Currently I have several if statements that check this, but I was wondering how you would use the "for each" looping to cycle through them all instead and cut down on code.
Does the view conform to a hierarchical structure so that, for example, the textfields are contained within the view? If this is the case then I perceived it to be something like:
foreach(UITextView in UIView) {
............code here......
}
Is this correct - how would it actually be written?
Many thanks for any help.
Cheers.