Iphone Tutorial Xcode

Mobile app development
We started talking about Xcode in the precious article
Xcode
The main tool you use to create applications for iPhone OS is Xcode—Apple’s IDE (integrated development environment). You can also use it to create a variety of other project types, including Cocoa and command-line utilities.
Launch Xcode (by default it’s in /Developer/Applications), then create a new project by choosing File > New Project. You should see a new window similar to this:
>> Select the Window-Based Application.
In the Product popup menu, make sure iPhone is selected. (Do not select the option to use Core Data for storage. You don’t use Core Data in this example.)
>> Click Choose.
A sheet appears to allow you to select where your project will be saved.
>> Select a suitable location for your project (such as the Desktop or a custom Projects directory), then give the project a name—HelloWorld—and click Save.
The remainder of the tutorial assumes that you named the project HelloWorld, so the application delegate class is called HelloWorldAppDelegate. If you name your project something else, then the application delegate class will be called YourProjectNameAppDelegate.
You should see a new project window like this:
f you haven’t used Xcode before, take a moment to explore the application. You should read Xcode Workspace Guide to understand the organization of the project window and how to perform basic tasks like editing and saving files. You can now build and run the application to see what the Simulator looks like.
>> Choose Build > Build and Go (Run) or click the Build and Go button in the toolbar.
The iPhone Simulator application should launch automatically, and when your application starts up you should simply see a white screen. To understand where the white screen came from, you need to understand how the application starts up.
>> Quit the Simulator.
Application Bootstrapping
The template project you created already sets up the basic application environment. It creates an application object, connects to the window server, establishes the run loop, and so on. Most of the work is done by the UIApplicationMain function as illustrated in Figure below
The main function in main.m calls the UIApplicationMain function:
int retVal = UIApplicationMain(argc, argv, nil, nil);
This creates an instance of UIApplication. It also scans the application’s Info.plist property list file. The Info.plist file is a dictionary that contains information about the application such as its name and icon. It may contain the name of the nib file the application object should load, specified by the NSMainNibFile key. Nib files contain an archive of user interface elements and other objects—you’ll learn more about them later in the tutorial. In your project’s Info.plist file you should see:
<key>NSMainNibFile</key>
<string>MainWindow</string>
This means that when the application launches, the MainWindow nib file is loaded.
>> To look at the nib file, double-click MainWindow.xib in the Resources group in the project window (the file has the extension “xib” but by convention it is referred to as a “nib file”). Interface Builder launches and opens the file.
Continued to next article: iPhone application development
For more information on<a href=”</strong>http://www.asglobal.co.uk/iPhone_apps.html<strong>”> Mobile app development </a> you can visit our web site http://www.asglobal.co.uk/iPhone_apps.html
About the Author
Hi, this is Rakesh Mishra from Indian SEO, we provide SEO solutions to 100+ clients, from different countries like: US, UK, China, India. To know more details about the services please go through our website: http://www.indian-seo.com.
Hello World Tutorial: XCode For iPhone 2.2
|
|
Learning To Build Apps For iPhone – iPad Training DVD $64.99 Number of Videos: 105 Lessons – 12.5 Hours Duration Ships on: DVD-ROM User Level: Beginners Works On: Windows 7,Vista,XP- Mac OS X In this training video, you will learn how to create apps for iPhone and iPad devices. Expert trainer and published author Tony Bove introduces you to using the iOS SDK and Xcode to build apps for the iPhone, iPad and Universal apps. Even if you have never programmed… |
|
|
Programming in Objective-C (4th Edition) (Developer’s Library) $27.95 This is the 4th edition of the world’s bestselling book on Objective-C programming, fully updated to cover Xcode 4.2 and Automatic Reference Counting (ARC). Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming for Apple’s iOS and Mac platforms. The book makes no assumptions about prior experience with… |
|
|
Objective-C Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides) $20.00 Want to write applications for iOS or the Mac? This introduction to programming and the Objective-C language is the first step on your journey from someone who uses apps to someone who writes them. Based on Big Nerd Ranch’s legendary Objective-C Bootcamp,¿this book covers C, Objective-C, and the common programming idioms that enable developers to make the most of Apple technologies. … |
|
|
Beginning iOS 5 Development: Exploring the iOS SDK $23.83 The team that brought you the bestselling Beginning iPhone 4 Development is back again for Beginning iOS 5 Development, bringing this definitive guide up-to-date with Apple’s latest and greatest iOS SDK, as well as with the latest version of Xcode. There’s coverage of brand new technologies, with chapters on storyboards and iCloud, for example, as well as significant updates to existing chap… |