Posts Tagged ‘Software Development’

Exploring iPhone Graphics Part 3

Last time we created a simple iPhone application that made a ball bounce around the screen. This time we are going to extend the last example to use the accelerometer to create a gravity influence on the ball. So as you tilt the device the ball will roll in the direction of the tilt. The [...]

Exploring iPhone Graphics Part 2

In Part 1 of this series of articles we drew some simple graphic primitives on the iPhone display. In this article we are going to look at how to do some simple animation. The goal of this example is to create a 2D ball that bounces around the iPhone screen. First of all we need [...]

Plotting a Sine Wave with the iPhone SDK

Got the following request from Leo on the Exploring iPhone Graphics Part 1 article: Could you give me a quick primer on how to draw a sinus curve (or similar curve) with the data coming from an array? Here it is: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [...]

Exploring iPhone Audio Part 7

In the last article of this series we started looking at iPhone audio playback. This time we are going to see how to actually play an audio file that our applicaiton has recorded. The startPlayback method sets everything up for audio playback and starts the playback process. 1 2 3 4 5 6 7 8 [...]

Exploring iPhone Audio Part 6

In Part 5 of this series we added a simple user interface to control the audio recording process. A UILabel was added to display the status. Also two buttons were added to control both recording and playback. Up to this point we have only discussed recording audio. This article will begin to see how to [...]

Exploring iPhone Graphics Part 1

The series of articles is going to discuss creating graphics on the iPhone using the SDK. Part 1 will start out with the basics by drawing some simple 2D graphics. In later articles I plan to get into animation, using the accelerometers and maybe even a little OpenGL. The sample application for this article is [...]

Exploring iPhone Audio Part 5

Part 4 of this series talked about writing recorded audio data to a file. In this article we will set create a very simple user interface so we can control the audio functions. We are going to add a UILabel control that will display text corresponding to the current state of the application. We’ll also [...]

Xcode Tips: Selection indent and Block select

When working in Visual Studio I find myself using the selection indent/un-indent editor feature a lot. You can select some lines of code, press tab and all the lines will indent. You can also press shift-tab to un-indent the selected lines. You can do this with Xcode also. The keyboard short cuts are Command-] for [...]

Exploring iPhone Audio Part 4

In Part 3 of this series of articles we created the AudioInputCallback function that does nothing more than log that it is being called. In this article we’ll learn how to create an audio file in the Document directory of the iPhone flash memory and write audio data to the file. First of all we’ll [...]

New iPhone SDK Available for Download

Version 9a2151 of the iPhone SDK is available from the Apple iPhone Developer web site. This version includes the much awaited Interface Builder tool for building graphical interfaces visually.