Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

iPhoneAppStepByStep 1: Create plain universal iOS application in XCode 4

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,571
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Jul 25, 2011

XCODETUTORIAL.INT-INNOVATIONS.COM

1. Start your XCode and select Create a new XCode project
2. When prompted, select Windows-based application from iOS / Applications and press Next
3. Type MakeItFine into the Product Name text field. Device family is Universal because we want our application to run on both iPhone and iPad. We don't need Core Data and Unit Tests, so leave these checkboxes unchecked and press Next.
4. Now select the destination folder for your new project. It's up to you.
5. During the development of whole project, we'll need few images (you can download them here), so now it's the right time to add them. Right click on the MakeItFine folder in the Project Navigator sidebar and click on Add Files to "MakeItFine"... Navigate to Images directory, select Copy items into destination group's folder (if needed) and press Add.
6. Our application is quite simple, so we'll need only one view controller. Again, right click on MakeItFine folder and now select New File.... Then select UIViewController subclass from iOS / Cocoa Touch and press Next. Save As: MakeItFineViewController.m and press Save.
7. Open MainWindow_iPhone.xib and drag & drop View Controller from Library into Objects. Select it and then in the Identity Inspector change it's class to MakeItFineViewController. Repeat the same with MainWindow_iPad.xib.
8. Now add Views. Right click on the iPhone folder and select New File then select View from iOS / User Interface and press Next. Device family is iPhone. Name it MakeItFineView_iPhone.xib and press Save. Now repeat the same but on the iPad folder, select iPad as a Device Family and also name it MakeItFineView_iPad.xib.
9. Now in MainWindow_iPhone.xib select Make It Fine View Controller and in Attributes Inspector set it's NIB Name to MakeItFineView_iPhone. Repeat the same with iPad.
10. Select Window in Objects and in Connections Inspector drag a line from rootViewController to the Make It Fine View Controller in Objects sidebar. Repeat the same for iPad.
11. Now we need to setup a class to our views. Select MakeItFineView_iPhone.xib and after selecting File's Owner in Placeholders sidebar, change it's class to MakeItFineViewController in Identity Inspector. Now drag a connection from view in Connections Inspector to View in Objects sidebar. Repeat the same for iPad.
12. Congratulations! First part of your app is done. You can try to run it on both iPhone and iPad simulators. It should be working.

FOLLOW XCodeTutorial.int-innovations.com FOR THE REMAINING VIDEOS

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (iPhoneAppStepByStep)

  • English Close Caption added - voice over will be available soon...

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • BEST EVER!

  • @GoooboopTT Hi! Thank you for your interest. Coding part is well described at int innovations com page . If you have more questions please feel free to join our facebook discussion.

  • @TimezAlmostOver Thank you for your interest. We're creating these connections at 1:53 for iPhone and at 3:43 for iPad version.

  • The voice over will be nice; i missed creating the connection between the Window's 'root view controller' to the view controller.

  • there seems no coding. I need help with the coding - it's the hardest part >.<

  • no help you dont even talk

    

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more