Xcode 4.2 iOS Empty Application and storyboards?

Comment out (or remove) the window creation and display code in AppDelegate. M as follows.

Up vote 3 down vote favorite 1 share g+ share fb share tw.

I'm an Xcode newbie, and I'm trying to make my first training app. Since apparently Empty Application template is the only template that offers pre-integrated Core Data, I choose that. However, after that, I can't get UI to work (it remains empty).

What I did: Empty Application template New iPad Storyboard file Splashed Tab Bar Controller onto it Changed Main Storyboard in Project's Summary view Hit? R Stared at pure-white iPad screen, without any tabs I tried diffing against another project that I created as a Tab Bar Application (which does reflect my Storyboard changes), without any insight. Ios xcode ios5 storyboard xcode4.2 link|improve this question asked Oct 26 '11 at 17:33Amadan13.9k1025 87% accept rate.

Comment out (or remove) the window creation and display code in AppDelegate. M as follows: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // self. Window = UIWindow alloc initWithFrame:UIScreen mainScreen bounds; // Override point for customization after application launch.

// self.window. BackgroundColor = UIColor whiteColor; // self. Window makeKeyAndVisible; return YES; } When using a storyboard, a main UIWindow is created for you automatically.

What is happening in your case is that you are creating another white window and putting it over the top of the tab UI. ALSO - note that the Master/Detail template also gives you a core data option.

Never having seen Master/Detail on iPhone, I figured I couldn't make it Universal... Also, thank you, works perfectly. – Amadan Oct 26 '11 at 18:16 Master/detail is the standard navigation controller-based template used by many iPhone apps. – Robin Summerhill Oct 26 '11 at 18:18 Oh.

I thought it was navigation + table :) Well, that simplifies things! (I thought master/detail was the thing on iPhone where you get the split view - which I haven't seen on iPhone. Shows how much I know :P ) – Amadan Oct 26 '11 at 18:22 It is navigation + table because that's such a typical combination.

However, you can strip out the table if you don't want it. – Robin Summerhill Oct 26 '11 at 18:25.

The Master-Detail and Utility project templates also offer Core Data as an option. The Apple templates for Core Data are pretty horrible. They stuff far too much functionality into the app delegate and they use lazy loading unnecessarily, which just complicates things even further.

You're better off looking at the generated code and adding the functionality as a separate class in a project you start without Core Data. To answer your immediate question though, the default empty template creates a window programmatically in the app delegate's application:didFinishLaunchingWithOptions: method. The story board sets a window up itself, so you need to remove that code from the app delegate.

The only thing you need in that method is return YES;.

I normally dislike autogenerated code, but in this case, trying to get into a completely new ecosystem of tools and not knowing what anything does let alone how to make something new by myself, following along with templates still works best :( I'd love to be able to write it myself, but I guess it'll have to wait. BTW: not fair that I can't accept two answers >.

For an Empty Application project, you have to do two things, after you've added your Storyboard file... Add a row to your project Info. Plist file: Key: Main storyboard file base name Value: Storyboard (or whatever you named your storyboard file) Delete the contents of application:didFinishLaunchingWithOptions: except return YES;: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions