The rest of the steps should make more sense after you have that. Make sure you select "Tab Bar Application" when making your new project, the MainWindow.xib file should definitely be there. When I said "Integrated Interface Builder" I meant it is now part of Xcode, it used to be a separate program.
Cambam save defaults how to#
Some of the windows you need to use are collapsed by default but I mention how to open them, most of the code examples I put in my instructions are not auto generated. I just double checked using version of 4.2 and it looks like things are pretty much the same (I may have been using that version all along).
Some of my comments in my directions were aimed at people who were upgrading from Xcode3 so that is probably adding some confusion. I get crashes and errors - maybe I'm just not connecting things correctly with File's Owner - but I think I'm setting things up right, I'm making sure to include the and - but I'm crashing all over the place.Īny tips (or even code) on setting up this "engine" so that it works correctly? Reply Delete This is where I get lost with trying to figure out what controls what. What if I wanted the Navigation Controller that I'm creating to then contain a TableView? But I don't want it be from a UITableViewController, just a regular Table-View?ġ) we have our FirstViewController, SecondViewController and of course the new View-Controller we created as per your instructions called MyNewViewController.Ģ) Because I wanted MyNewViewController to load a view that has a NIB (xib) file, I also created yet another view called "peachScreen", which is a subclass UIViewController, which then gave me a peachScreen.h, peachScreen.m, and peachScreen.xib files (and of course I made the background color of the xib file be peach.)ģ) Finally, I set this up: MyNewViewController has a button which push-loads the peachScreen view.īUT, if I wanted to now put a table inside of peachScreen - meaning I want to drag a Table-View from the Library/Objects panel (not a Table View Controller! just a Table View) and drop it in the middle of my peachScreen, and resize it so that its like only half the page, and then have the individual cells of that table drill-down and take me to other detail-views - without ever losing my TabBar at the bottom - well how the HECK do I do that? :-)Ĭause that's what's killing me. Ok that worked - but here's the REAL question :-) Look closely at step 5-7 in the tutorial, since they do exactly what you want to do as far as creating a UIViewController from a NIB. You should be able to push it onto the stack over and over again.ģ) Once you get all that working you can try getting your "SomeRandomScreen" loading.
There are a few small steps you can take to figure out what you're doing wrong:ġ) Try allocating the empty UIViewController and pushing it onto the navigation controller, but change the background color.Ģ) Once that works, try pushing the UIViewController I made in the tutorial onto the stack just like you're doing, but with "YourNewViewController". Without seeing the error message when it crashes I can't really say whats wrong with it. That said, the code you posted should work fine. When I'm creating a UI programatically, I'll frequently do a simple modification like changing the background to make it easier to see what the heck I'm doing: " = " It is a real view, it just has nothing on it. I wouldn't call it a "non-existant" view.