Tonight I found an answer online to moving a TextField object to the front with code. I have a bunch of textFields and as the user selects one of them I have a UIImage alpha change from 0.0 to 0.8 to darken the UIImage, textFields, Lables under so the whole image appears much darker. The goal is to make the selected TextField stand out so I also needed to move the textfield to the front above the UIImage with the changing alpha.
was my solution. I understand this code except for the superview. I have a blank xib window and added a UIView that has a png on it. On top of that I have Lables, TextFields and so on.
Is that superview code referring the the UIView the TextField object is sitting on? I am unsure as to what the superview of a UITextField is referring to?
Thanks
Code:
[[phoneNumberTextField superview] bringSubviewToFront:phoneNumberTextField];
was my solution. I understand this code except for the superview. I have a blank xib window and added a UIView that has a png on it. On top of that I have Lables, TextFields and so on.
Is that superview code referring the the UIView the TextField object is sitting on? I am unsure as to what the superview of a UITextField is referring to?
Thanks