Having good references could save programmers a lot of time, so as a newcomer to Xcode, I want to share these tips.  Note: I am using Xcode 3.1.2 Searching SDK/API on The Developer Documentation You can search the documentation using the search field on the right side project windows (see picture below), not the search […]

Continuing from Part 1, this part will demonstrate the followings: * Loading image dynamically using UIImageView * Using array Step 1 Open the Ball project created in Part1. Step 2 Import another image into the Resources Group (you can use the same image as previously, but it won’t be as much fun). Step 3 We […]

iPhone likes CAF (Core Audio Format), but how do you create or convert to a CAF file? 1) Use the afconvert tool from Apple. This is a command line application that you need to run from the shell prompt. Example: Documentation: http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/afconvert.1.html To batch multiple files, I have found it useful to write a batch […]

LocalConnection enables two or more Flash files to communicate with each other. You can also use other methods, such as SharedObject, but the benefit of LocalConnection is the real-time nature of LocalConnection. For more information, click Adobe documentation here. For an introduction to LocalConnection, please see this article which explains how to set up a […]

There are what will be demonstrated: * Using Transformation. * Using UIImageView. * Using interval for animation. * Associating image with objects. * Deriving a class from UIImageView. Step 1 Create a New Project. Select iPhone OS Application -> View-Based Application. Name it Ball. Step 2 Import an image into the Resources Group.  If you […]

In this example, we will use Cocos2d’s scripted animation to create a bouncing ball animation. This example assumes familiarity with setting up a simple cocos2d project.  Please review the previous guides if necessary.  The example below is based on the cocos2d example named Click And Move which came with the cocos2d package. Note: this guide […]

Here are some links to get started with iPhone game programming: Brandon Trebitowsky at http://icodeblog.com/ has nice tutorials on Game Programming using the UIImage.  Following the first two-parts of the tutorial, you can build a nice pong-like game.  He also has sections for iPhone general programming, in case you’re interested in that sort of thing […]

For your reference, here’s Part 1 and Part 2. If the example doesn’t work, it was because Part 1 and 2 uses the same variables. Open this guide as a separate page to fix it. Also remember that you need a browser that supports Canvas, such as Firefox 3. Before you start drawing lines, you […]

We learned how to create Canvas objects in Part 1, and we also learned how to draw a simple shape on Part 1. You need a browser that support Canvas such as Firefox 3 to run the examples.   Now it’s time to show how to crate a canvas that “overlays” your web-page. By overlay, […]