today I came across a strange problem. I started a really simple project where I just had one View with an UITextField on it. During execution of program I wanted to set the text of that TextField but I figured out that UITextField only was referenced to 0x000000.
Of course before I had correctly connected the Outlet to the TextField as I always do - I have got many experiences in working with Xcode and iOS and did it really often before.
I tried everything from deleting the TextField again, creating a new outlet by the help of interface builder or even deleting every peace of code and doing everything from the very beginning. But nothing did work.
Because I did not understand it I created a new project and although I did everything in the same manner this time it worked. Unhopeflly after many many lines of code I added a second view and now I've got the same problem with this second view.
Does anybody now, what I'm doing wrong?
If you need some kind of code, let me know, but believe me, I really just created a new view, put another TextField on it, created the outlet via Xcode and then pressed run. Then I set a breakpoint in the viewDidLoad method and here you are: TextField only is referenced to nil.
Please help me if you have any ideas.