Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Photo Browser iPhone App Collection Views Implementing UICollectionViewController

charlie D
charlie D
5,218 Points

Removing Storyboard From Xcode 6.1

In order to complete project, I need to remove storyboard from my project file since Xcode 6.1 does not provide the type of empty application required for this project.

I've already tried removing Main.storyboard, LaunchScreen.xib, and "Main storyboard file base name" and "Launch screen interface file base name" entries in Info.plist file

Xcode 6.1 still looks for mainStoryboard and App crashes! Any suggestions regarding resolving this issue?

Thanks...

Hi,

Is there a way that you could show me cople of screenshot ? i may try to help , depends whats on the screen .

4 Answers

charlie D
charlie D
5,218 Points

Downloaded Xcode 5.1 to a different directory than Xcode 6.1 on same PC. Used Xcode 5.1 for Photo Bombers project.

Yaroslav Ryabukha
Yaroslav Ryabukha
14,485 Points
  1. Instead of creating an empty project it's easier to create Single-View application and delete Main.storyboard and ViewController class from project navigator
  2. In General settings of your project you need to clear the "Main Interface" field
  3. In AppDelegate.m you need to copy all the code from didFinishLaunchingWithOptions method, just like Sam has in his video

After these steps you should be able to complete Photo Bomber project in Xcode 6

Pablo Alfaro
Pablo Alfaro
Courses Plus Student 6,923 Points

You the man Yaroslav. Thank you for your concise answer.

Ilari Niitamo
Ilari Niitamo
6,458 Points

Once you remove the storyboard and have cleared it from General Settings where it says Main Interface, put this code in your didFinishLaunchingWithOptions method in AppDelegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    [window setRootViewController:[[PhotosViewController alloc] init]];
    [window makeKeyAndVisible];
    [self setWindow:window];

    return YES;
}

This works for me! But why would we need to create a new UIWindow object instead of self.window?

Bradley Maskell
Bradley Maskell
8,858 Points

charlie D, Are you still referring to them in your project settings? If so "Main Interface" should be left blank.

charlie D
charlie D
5,218 Points

No. Main interface is blank in project setting.