UIwindows class
<p>I saw a video tutorial on iphone development without nib files.</p>

<p>As anybody who has programmed without nib files, you will know that you have to remove the nib file from the plist and then add in code in the main.m function UIApplication.</p>

<p>Anyway regarding the following code:</p>

<p>(from app delegate class)</p>

<pre><code>- (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions { 

// Override point for customization after application launch

// window = [[UIWindow alloc] initWithFrame:[ [UIScreen mainScreen] bounds]];

    window = [[UIWindow alloc] initWithFrame:&lt;#(CGRect)frame#&gt;

    [window makeKeyAndVisible];

    return YES;
}
</code></pre>

<p>the line which I have commented out (// windows = [[UIWindows alloc.... etc etc) was taken from the tutorial. Basically the code inititiliases a new instance of UIWindows and sets up the mainscreen etc. </p>

<p>I went into xcode (and used intellisense) and started to type the line """windows = [window = [[UIWindow alloc] initWithFrame:&lt;#(CGRect)frame#>. """ </p>

<ol>
<li><p>Why couldnt I find the the name initWithFrame argument in the UIWindows class reference document? (I found it in UIView)</p></li>
<li><p>And what does CGRect mean? How did the person doing the tutorial know how to add this code """window = [[UIWindow alloc] initWithFrame:[ [UIScreen mainScreen] bounds]];"""" in order to bring up a window. </p></li>
</ol>

<p>The point I am making is, shouldnt one be able to program using intellisense and the apple docs? Or do I have to rely on somebody to actually show me how its done?</p>

<p>I started using IBuilder, and to be honest I can build just about anything BUT only by googling and following tutorials. For example making an app with a navigational controller, I could make it, but only if somebody shows me how(of course I can adapt code and put two and two together). If it was for the apple docs and just intelliesnse, I would be lost. Is this the same for everybody else?</p>

<p>I want to learn exactly and perfectly what AND how UIview, UIwindows and UIviewcontoler work, what are they each about? how do they work with each other? any good books some body can recommened me please. I am aware of the Heirgrass, Stephan Kochan and read there books. I have also read the Iphone development book recommened in this forum, but these books just give you the code, they dont explain the how and why?</p>

<p>Maybe i should just read the apple docs , start a small project and just learn from experience. </p>

<hr>

<p>thank you for your prompt reply.</p>

<p>Do you think the line of code mentioned could be produced by just refering to the apple sdk? or do you think somebody has to actually show me how to use all the classes in conjunction with each other? (i.e. via tutorial or book or example code etc). ?</p>

<p>I know what the code does roughly, should I only be concerned with the result or should I learn exactly what is going on in the code?</p>

<p>would you agree that sometimes its impossible to learn how to use a class or do programmming unless somebody gives you example code?</p>

<p>for example recently I learnt how to use UInavigationcontolller to navigate between different views.  I noticed that when I read the code AND exlored IB I understood finally that each View has its own UIViewcontoller (extended class). I didnt pick up this basic fact when I was reading books and tutorials on the internet.</p>
