Xcode Tutorials

Xcode tutorials, iPhone development, Objective-C tutorials and more..

March 1st, 2012

iOS5 Game programming part 2

1 Comment, Example, General, UITabBar, by J. Holtes.

This is the second part of a two part tutorial series where we’ll show you how to build a simple turn-based game with the new Game Center APIs in iOS 5.

In the first part of the tutorial series, we started with the basics – getting the app set up, and creating a turn-based match.

In this second and final part of the series, we’ll get to the fun stuff. We’ll allow players to take their turns and add the extra details and polish to wrap up this game!

So advance to the next turn, and let’s wrap up this game! :]

More


March 1st, 2012

iOS5 Game programming part 1

No Comments, Example, General, UITabBar, by J. Holtes.

In iOS5, Game Center has a new API that makes it even easier to create another type of game: turn-based games!

This new API is perfect for board games, turn-based strategy, word games, and other types of casual turn-based games. You can take a turn in your game, wait for your friend to take his turn, and then get notified when it’s your turn again!

More


March 1st, 2012

Beginner’s Guide to iPhone Development

7 Comments, General, by J. Holtes.

So you’ve got a Mac, you’ve got an iPhone, and you really want to start writing some apps. There’s tons of documentation available, but the best way to learn a new language and framework is to simply dive right in. All of the documentation and tutorials I ran across when learning to program the iPhone depended a little too much on Interface Builder, which basically sticks a layer of magic between me and what I want to do. Frankly, I like to begin at the bottom and work my way up, which is why this tutorial is going to show you how to create a basic ‘Hello World’ application programmatically – without the help of a visual designer.

When I pick up any new framework that includes a designer, I like to start out building interfaces in code, because then I get an understanding of what the designer is doing behind the scenes. And honestly, I find Interface Builder about one of the most confusing designers I’ve ever used.

The first thing you’re going to need to do is download and install the iPhone SDK. This is going to give you everything you need in order to build apps – XCode, iPhone Simulator, and Interface Builder. Downloading and installing the SDK is totally free. You’ll have to pay $99 if you want to run the app on a real iPhone or distribute it to the app store. For the purposes of learning, though, the simulator works just fine.

After you’ve got all that stuff installed, you’re ready to start. Start by launching XCode. By default it’s installed in the Developer folder.


April 5th, 2011

Xcode 4 tutorial

8 Comments, General, by J. Holtes.

Source: Paul Peelen – http://paulpeelen.com/2011/03/17/xcode-4-ios-4-3-hello-world/

What you will learn

In this tutorial you will learn how to create a new iOS application with design layout set for iPhone. The application you are creating will include an label (text) and a button (to change the text of the label). Also the application will have a background color.

You will learn the basics of working with XCode (The very basics) and be able to play around with, what you proudly can call, your first iOS Application.

What I expect you have already done…

The first thing I expect you to have done it to have gotten a mac (or at least a computer running OSX). No, you cannot develop any iOS applications using a windows or linux computer… or at least I haven’t seen anybody do it (and I don’t know why you would try to either).

The second thing I expect you to have done is to either have purchased XCode 4 from the App Store, or have downloaded it from http://developer.apple.com (if you have a developers license!), and installed it on your computer.

When all thats done, we’ll start with our process.
More


April 5th, 2011

Enable gestures on iPad with xcode

4 Comments, General, by J. Holtes.

Enable gestures on iOS 4.3 iPad and iPad 2When the iOS 4.3 beta emerged it included 4-and-5-finger gestures for the iPad, such as pinching to return to the home screen, and swiping to reveal the multitasking tray or switch apps. Just one week later, Apple said that iPad gestures wouldn’t make the cut, and indeed, iOS 4.3 was summarily released without gestures for the iPad and recently-released iPad 2.

Don’t despair, however: they can be re-enabled by turning your iPad into a developer iPad by using Apple’s Xcode developer tools. Some people say that you had to pay $5 to get Xcode 4 from the Mac App Store, but our very own Samuel Gibbs found that the free-to-download Xcode 3 works just fine.

To unlock iOS 4.3′s gesture controls on your iPad, download and install Xcode 3/4, open Xcode, connect your iPad to your PC, then Window > Organizer and press the “Use for development” button. You can also download Xcode 3/4 from elsewhere on the Internet if you don’t want to sign up for an Apple ID.
Let us know in the comments if you successfully enable gestures on your iPad!


March 31st, 2011

Creating a To Do List Using SQLite Part 2

2 Comments, SQLite, UITableView, by J. Holtes.

This tutorial is part 2 in our series of creating a to-do list. I will assume that you have completed the following tutorial and its prequisites.

I will be using the code produced from that tutorial as a base for this one. When you are finished with this tutorial, your application will look something like this:

More


March 31st, 2011

Creating a To Do List Using SQLite Part 1

9 Comments, SQLite, UITableView, by J. Holtes.

If you have been following my tutorials, you know that we have been working primarily with UITableViews. This is mostly because SO many applications can be developed using this simple control. This final UITableView tutorial will be taking all of the skills learned from previous tutorials, putting them all together, and adding SQLite to create a prioritized To-Do list. I will also be showing you how to add multiple columns to your table cells and we will be exploring some of the other controls that the iPhone has to offer. What good would the tutorials be if we didn’t use them to create something useful.

I will move a little faster in this tutorial while still explaining the new stuff in detail. I will assume that you have completed the fruits tutorial and it’s prerequisites.

This tutorial will be a multipart series as it will be a little longer than my previous ones. In this first tutorial, you will learn:

So let’s get started…

Open up X-Code and Select File->New Project… Select Navigation-Based Application and click Choose…

More


March 29th, 2011

Application Loader

1 Comment, Application Loader, by J. Holtes.

You can download Apple’s most recent Application Loader here. It is an alternative program to submit and validate your app. Apple recommend to use this app if your application is over 200MB.

When you need to choose file, you do this:

  1. Right click on your target in xcode
  2. Reveal in finder
  3. Archive the .app file
  4. Now you got an .zip file, select that file in the Application Loader and you’re done

March 27th, 2011

Tab bar controller

5 Comments, UITabBar, by J. Holtes.

In this tutorial, you will learn how to create applications with a Tab Bar Controller. Tab Bar Controllers can be seen in iPhone/iPod Touch applications like the Clock.In this tutorial, you will learn how to create applications with a Tab Bar Controller. Tab Bar Controllers can be seen in iPhone/iPod Touch applications like the Clock.

More