Reputation: 3810
A book described the following steps for a project without any Interface Builder files:
.xib
file ProjectName-Info.plist
file and remove the Main nib file base name
property. (select it and press Delete) main.m
and change the last argument for UIApplicationMain
to @"ProjectNameAppDelegate"
@property
line in ProjectNameAppDelegate.h
and @synthesize
in ProjectNameAppDelegate.m
I can't find (2) above for the property, and since I am using Xcode 4.3.2, the ProjectNameAppDelegate.h
has become AppDelegate.h
(the .m
as well)... I also see a window
and viewController
properties there... and doesn't look like they need to be removed as in step 4. How can it be done if it is Xcode 4.3.2 (or later?)
Upvotes: 0
Views: 190
Reputation: 73936
If you want to create a project with a clean slate, Xcode provides a template called Empty Application.
The standard templates don't include a main window nib any more, so the change in #2 is not necessary. You should make sure you don't enable storyboards when you create your project though.
Yes, the application delegate is just called AppDelegate
now. It's just a name. It doesn't matter.
Edit:
Steps to create an iPhone application with a view controller from an empty application template:
UIViewController
.AppDelegate.h
to import your view controller header.application:didFinishLaunchingWithOptions:
to instantiate your view controller, assign it to the instance variable, and add its view as a subview to the window.Upvotes: 3