I don't understand the mechanism of loadView:
function (this function is in UIView).
I created a project as below:
- First, I created a iPhone's window-based project.
- Then, I created a
UIView
subclass - Next, I created a
UIViewController
subclass, with no xib. - Lastly, in the
loadView:
function of the class I created in the third step, I designate the UIView object (in the class I created in the second step) as the view variable of theUIViewController
object (in the third step).
If I omit the last step, and place the statement NSLog(@"test LoadView");
in the loadView: function, then when the project is run, the statement NSLog(@"test LoadView");
is invoked continuously, result in the run is overflow.
Please explain me! Thank you!