loadView and ViewDidload with IB:
I spent the last couple of days understanding the integration between Xcode and IB because before I was able to implemnet a whole app just using Xcode (no IB at all), and then i did apps with IB.
However, I always wondered how to use the IB coordinates in case we wanna do any transformations or resizing... I finally got it, but wanna share with you some questions still got doubt about:
When I implement view, labels, buttons,.... all in code, I do not see then in the view of the nib of the .xib, but once I run the program, they are there. I put everythin in loadView, so I believe loadView generates its own view, which we can not actually see. Is that correct?? Does it make any sense?
Also, when I figured how to control the IB outlets and labels coordinates with xcode, I had to do it in the ViewDidload and worked perfectly fine and I understood the logic, so can i say that: We can not use loadView while using Interface builder on the same View!??? cuz we will have two different views in the file owner making no sense!
Please any further information about this subject would be appreciated. Thanks,
|