Hey Bucky, i made everything on Xcode when i build and run it, the whole screen stays black and there is an error with the applicationdidfinishlaunching in the appdelegate.m file.
can u upgrade all the iPhone development tutorials using Xcode 4.2, IOS 5 SDK and make all the videos HD.
this would benefit new users using new current macs with Latest software and
You know...i doubt someone new to iPhone Development can really get this logic, like "...ummm...just do this", "i can't really explain it, but you should do this", "link it" and so on ) I even can't get this: self.redClass = red - why do we need this? why this affects something? because we set smth like self.view = red.view
I am a real newbie to iphone programming. I followed all the tutorials to build this multiview app, and it compiles cleanly, but I just get a white screen in the iphone simulator. How do I troubleshoot that? Thank you for your fantastic tutorials!
@spookymcfuzzy i know this comment was like a year ago and you mightve figured out by then tht not everyone who subscribed watches his iphone development videos but also python java etc.
I'm using using xCode 4.xx and after some playing about, and tacking down... I have pin pointed the line that is crashing mine, and it is :
[self.view insertSubview:blue.view atIndex:0]; in the method viewDidLoad...
Now, I have no idea currently what the problem is, but if/when i fix it. I'll post another comment here :) just a heads up..
P.s to work this out, i went through everything step by step to see what line caused it... and turned out it was this one :)
If your using xcode 4.0 it might be that in the "Beans2AppDelegate.m" file when Bucky adds the line :
[window addSubview:switchClass.view];
Bucky has previously used @synthesize window;
Where as xcode 4.0 has used @synthesize window=_window;
so for the line
[window addSubview:switchClass.view];
use:
[_window addSubview:switchClass.view];
This is what my problem was, hopefully it helps some people.
Follow my instructions...
go to the 'Beans2AppDelegate.m' file or whatever you named it, you will notice that the newer Xcode versions differ slightly from what you see on Bucky's screen.
What you need to do is this.. Delete EVERYTHING you see BETWEEN "@synthesize window" and "-(void) dealloc" methods. All of that is I believe new stuff that was added.. so if you delete all that junk, then finish off what bucky shows you, it will work 100%
after that, just type -(void)
@haulbass17 bit late now but i had the same problem, for me i and the @ sign missing in this line of code:
RedClass *red = [[RedClass alloc] initWithNibname:@"RedWindow" bundle:nil];
and the same in the blue one