I saw a video tutorial on iphone development without nib files.
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.
Anyway regarding the following code:
(from app delegate class)
- (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions {
// Override point for customization after application launch
// window = [[UIWindow alloc] initWithFrame:[ [UIScreen mainScreen] bounds]];
window = [[UIWindow alloc] initWithFrame:<#(CGRect)frame#>
[window makeKeyAndVisible];
return YES;
}
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.
I went into xcode (and used intellisense) and started to type the line """windows = [window = [[UIWindow alloc] initWithFrame:<#(CGRect)frame#>. """
Why couldnt I find the the name initWithFrame argument in the UIWindows class reference document? (I found it in UIView)
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.
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?
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?
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?
Maybe i should just read the apple docs , start a small project and just learn from experience.