iPhone Dev Sessions: Finding Your Way With MapKit

Looking for directions on how to create a simple map within an application can be challenging. Sometimes the simplest of typos or a missed step in the process can become very frustrating.

iPhone Dev Sessions: Responsive Web-Enabled iPhone Apps

A good iPhone app has to be simple, intuitive, responsive, and give users a compelling reason to use it. Unfortunately, there’s no recipe for how to write a simple, intuitive and compelling app. Writing a responsive app, however, is much easier.

iPhone Dev Sessions: Using Singletons

Managing an application’s state can sometimes require complex interaction with persistence and messaging with various resources, or it can be as simple as keeping track of a counter from one view to the next.

iPhone Dev Sessions: Making a Splash Screen

All too often an iPhone application’s launch sequence is an overlooked detail. The most common approach is to misuse the provided Default.png file as a splash screen. This detailing of an application is more than a little challenging if you want to get it right.

iPhone Dev Sessions: Adding Analytics to Your App

2009-08-09_1936

Welcome to another episode of TheAppleBlog’s iPhone Dev Sessions. We left off with a drum app tutorial called Bickboxx. For this tutorial, we’re building off of the first Bickboxx project, so go back and finish it if you haven’t already. Or if you want to cheat, grab the Bickboxx code from Github.

The Story

The Boss is happy we’ve released Bickboxx, the iPhone drum app, but now he wants to know how it’s doing. Not just sales-wise.
How many people use our app? How many times have they used the app? How much time do they spend using our app? How many users do we have in each city, state and country? How many illegal haxored versions are out there? How many people open the app once and never use it again?
Yikes. That’s a lot of questions.
Lucky for us, we don’t have to write hundreds of lines of code and roll our own analytics server to track the answer to these questions.
There are dozens of iPhone analytics APIs that will do all of the heavy lifting for us. Flurry, Mobclix, and Medialets come to mind.
There isn’t a clear leader in iPhone analytics yet but for this tutorial we’ll be using Pinch Analytics. It has comprehensive documentation and its reporting is detailed as well. Read More about iPhone Dev Sessions: Adding Analytics to Your App

iPhone Dev Sessions: Create a Drum App

BickBoxx-1

You’ve seen all the different drum apps, right? Well, they’re really easy to make. In this iPhone Dev Sessions article, I want to teach you how to make Bickboxx, an actual app that’s in the iTunes App Store.

Grab Bickboxx (FREE) from the iTunes App Store if you want to see this puppy in action so you have an idea of what you’re building. Also, I’ve opened up the source code for free at Github. Feel free to download it, report issues, or even fork your own version and change it as you see fit.

More info on the open-source community project at Bickbot’s Bickboxx page.

Note: You don’t need to download the code from Github to get through the tutorial.

An On-going Project

I plan on adding more tutorials with enhancements to this project. Here are a couple of things that could be featured in future iPhone Dev Sessions.

  • Key logger
  • Adding analytics tracking
  • Adding application preferences
  • Track recorder and editor
  • Vibration feedback
  • Add your own custom sounds
  • Access your iPod library as a background track

Leave a comment with other enhancements you want to learn.

OK, let’s get to creating Bickboxx! Read More about iPhone Dev Sessions: Create a Drum App

iPhone Dev Sessions: Create a Navigation-Based Application

In this tutorial, you will learn how to do the following:

  • Create and run a Navigation-Based Application from XCode
  • Create and add a user interface, designed in Interface Builder, as a sub-view to a navigation based application
  • Navigate to sub-views from a UITableView
  • Allow sub-views to access application data

Creating and Running a Navigation-Based Application in XCode

Let’s start off by opening up XCode and creating a Navigation-Based Application.

001

Click Choose… and give your application the name BasicNavigation. Once completed, your project window should look like this.

002

At this point, if you click “Build and Go” and have your project selected to run on the iPhone simulator, you should see the application launch and display a bare UITableView, with undefined row elements. No worries, this is going to change very soon. Your app at this point should look like the following below. Read More about iPhone Dev Sessions: Create a Navigation-Based Application

iPhone Dev Sessions: How To Make An Orientation-Aware Clock

iphone_clock

For this tutorial we’re going to build a simple clock that is orientation-aware, meaning that when you rotate your iPhone, the time rotates with it. I’m assuming you have a basic knowledge of the iPhone SDK.

To get started, you will need a label for the time and a background image. You will also need a timer. To get started, you must declare your outlets in code before Interface Builder will be able to use them. I’ll show you how to do that now.

Let’s Get Our Hands in Some Code

Edit SimpleClockViewController.h so it looks like this:
[sourcecode language=”csharp”]
#import <UIKit/UIKit.h>
@interface SimpleClockViewController : UIViewController {
IBOutlet UILabel* clockLabel;
NSTimer *myTicker;
}
@end
[/sourcecode]
The myTicker is going to be responsible for updating the clockLabel. We will implement that code later. Read More about iPhone Dev Sessions: How To Make An Orientation-Aware Clock

iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone

With this I’m assuming you have a bit of familiarity with the iPhone SDK – you can download it for free from Apple’s site, and follow along here. We’re going to build an RSS feed reader for a simple feed (from The Apple Blog, no less).

Let’s get started

  1. Open Xcode and choose the “File” menu, in which you’ll click the “New Project…” item.
  2. Click “Application” under “iPhone OS” in the list at left.
  3. On the right, choose “Navigation-Based Application”. Then click the “Choose…” button. You’ll be prompted to pick a name and location. Type in the name “TAB RSS reader”.
  4. Save it wherever you wish.

The Xcode project window will appear, with the standard 3 panes – I recommend pulling the horizontal divider on the right side all the way to the top, since you’ll need that editor area and all the real estate you can give it.
Read More about iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone