Where is mainwindow in xcode 4.2
The new xib will show up as expected. I'm not sure if it's just that my Xcode is horribly corrupted, but here's what else I had to do to get my application to run successfully:. Otherwise, you'll get output in your console that says Unable to load nib file.
See pics to compare. This will get your blank app window to pop up when you run the program. Drag an Object from the object library to the list of objects in the interface builder. Define its class as your app delegate class name and the object should rename itself to 'App Delegate'. Now your app delegate code will work. If you are currently using this method, then you don't need to change a thing. You can replace NSDocumentDirectory with many other constants. Is a MainWindow. Asked 4 Months ago Answers: 5 Viewed 24 times.
You can see that there is already a Window object, and this window object is the screen of the iPhone. Connect the window property to the Window that appears by default in IB. Modify it in the agent's didFinishLaunchingWithOptions function. No need to create a window , and then add the rootcontroller 's view under the current window.
A key step is to open the project properties and select MainWindow in the Main Interface under Summary to finish. Asked 9 years, 10 months ago. Active 9 years, 9 months ago. Viewed 2k times. This file contains the interface for your Quiz application. Click on MainWindow. But there is no MainWindow. What is the easiest way to get MainWindow. David David 3, 13 13 gold badges 46 46 silver badges 80 80 bronze badges. What don't you like about that post?
That is how it used to be constructed? Takes the same time as the whole example app. Do it once and save it. Or is it different now this book is iOS 4, not iOS 5, it is a year old. No, MainWindow. You just create views for view controllers. There is a UIWindow method setRootViewController: that is used as part of the bootstrapping process to make this all work, but you needn't worry about this if you are just beginning.
Use any of the non-empty project templates and just modify the. Also, really, get a newer book. Both Xcode and the APIs have changed quite a bit in the recent past, and you don't want to have to deal with this kind of ongoing frustration. What would you recommend? Dave Too bad I'm a big fan of BNR's books. I've also heard good things about Matt Neuburg's iOS book, and he contributes a lot to the cocoa-dev mailing list, so you could take questions right to the source.
Sign up or log in Sign up using Google.
0コメント