Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialcharlie D
5,218 PointsRemoving 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...
4 Answers
charlie D
5,218 PointsDownloaded Xcode 5.1 to a different directory than Xcode 6.1 on same PC. Used Xcode 5.1 for Photo Bombers project.
Yaroslav Ryabukha
14,485 Points- Instead of creating an empty project it's easier to create Single-View application and delete Main.storyboard and ViewController class from project navigator
- In General settings of your project you need to clear the "Main Interface" field
- 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
Courses Plus Student 6,923 PointsYou the man Yaroslav. Thank you for your concise answer.
Ilari Niitamo
6,458 PointsOnce 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;
}
uzairhaq
2,512 PointsThis works for me! But why would we need to create a new UIWindow object instead of self.window?
Bradley Maskell
8,858 Pointscharlie D, Are you still referring to them in your project settings? If so "Main Interface" should be left blank.
charlie D
5,218 PointsNo. Main interface is blank in project setting.
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsHi,
Is there a way that you could show me cople of screenshot ? i may try to help , depends whats on the screen .