Posts tagged as: Intermediate

Using Git Versioning inside your XCode Project

March 23rd, 2011 Posted by: - posted under:Featured » Tutorials - 13 Comments

This tutorial will show you how to automatically fill in CFBundleVersion and CFBundleShortVersionString, when using Git.
This has been tested in Xcode 3.2.5 (Updates for Xcode 4 at the bottom)
Git Setup
First off you need a project that is checked into git, and is also tagged with an initial version number.
If you already have git setup for your project, skip down to XCode Setup
To locally setup up git, without a remote repository, after installing git, issue the following commands
cd into your project …


An Introduction to Categories (Part 2 of 2)

February 24th, 2011 Posted by: - posted under:Featured » Tutorials - 3 Comments

Using Categories to enhance models, and get rid of those pesky compiler warnings
When using Core Data, our model classes are always generated. What happens if we wanted to add a couple utility functions to one of these generated classes? Yep, they would be discarded the next time we auto-generated our model classes. As we discussed in our previous categories post (, adding a category on one of these generated classes would enable us to add those utility …


Adding a UIPopover to UISlider

October 29th, 2010 Posted by: - posted under:Featured » Snippets - 6 Comments

If you have an iPad you have probably used iBooks, Apple’s eBook application that gives users access to the iBooks store. In this application you can navigate through books in a number of ways. Today we are going to focus on the scroll bar at the bottom of a book that a user can utilize to skip to any given page within the book. This control involves a customized UISlider and a UIPopoverView that drags along with the slider as the value changes. Today we will be making a UISlider subclass that will duplicate this functionality.


Adding Local Weather Conditions To Your App (Part 2/2: Accessing Google’s XML Weather API)

September 29th, 2010 Posted by: - posted under:Tutorials - 40 Comments
Screen shot 2010-09-29 at 12.41.17 PM

In this Part 2 of ‘Adding Local Weather Conditions To Your App’, I’ll show you how to quickly add current temp, conditions, and today’s high / low temperature to your app.
If you’re lucky enough to already have the user’s zipcode or city and state, this should go very quickly for you. Otherwise, check out Part 1 (Integrating CoreLocation).
Let’s get started.
There are a handful of solid XML Weather APIs out there. The best one I’ve seen so …


iPhone Programming Tutorial – Local Notifications

July 29th, 2010 Posted by: - posted under:Tutorials - 87 Comments
Screen shot 2010-07-29 at 11.28.46 AM

Way back when, when everyone was still complaining about Apple’s lack of support for (3rd party) multitasking, there was a simple solution put in place. This solution was known as push notifications.

Push notifications solved many of the issues associated with background processing. For example, when quitting the AIM application, the server could keep you logged in and send you a push notification when a new message arrived. You could then tap on a View button that would launch the app.

This solution is great and all, but it still requires that you have an active internet connection. As of iOS4, Apple has introduced a new type of notification that can be scheduled to fire within the device itself. It requires no complicated server programming, or additional configuration with iTunes. I am talking about Local Notifications.


Asset Libraries and Blocks in iOS 4

July 8th, 2010 Posted by: - posted under:Tutorials - 39 Comments
Screen shot 2010-07-06 at 1.45.15 PM

iOS 4 presented a million billion new API’s by Apple’s count, but for this post I am going to show a quick demo of the new Assets Library API where you can now get to users photos and videos with more access than ever before. This new API relies on the new programming device called Blocks that has been introduced with iOS 4. Blocks are used through many of the new API’s as a kind of extended @selector. We will …


Diving into the Twitter Stream

May 21st, 2010 Posted by: - posted under:Tutorials - 6 Comments

Hey iCoders. As I posted earlier I recently made an iPad app called TweetMapper. I just put out a new release of the app with a big new feature. The app now has a scrolling timeline of the tweets it is seeing as they come in. In order to make this app I took advantage of the Twitter Stream API that is provided by twitter. This API creates a persistent connection between the Twitter servers and your application. We will essentially start a stream of incoming NSData object to an NSURLConnection that you create querying the stream. We will look into the different search parameters which can be passed into the request, the way in which our code responds to authentication requests from Twitter, and the logic we must use to ensure that the data we have received is a complete XML element and not chopped off.


Adding TwitPic to your Application

February 23rd, 2010 Posted by: - posted under:Snippets - 20 Comments

Back in July of last year. Brandon put up a post showing you how to integrate twitter into your application. Today I am going to take the class he made last year and add a new class which will let you post to twit pic. First lets do a little overview of what tools we need for this.
Required Tools
Twit pic is an awesome service. They have created a …


UITextField – A Complete API Overview

January 4th, 2010 Posted by: - posted under:Tutorials - 30 Comments

The UITextField is probably one of the most commonly used UI controls on the iPhone. It is the primary method of user input via the keyboard and provides a great deal of additional functionality.
With the success of our las API tutorial on NSArray, I thought I would do another walkthrough, this time on UITextField. I will be explaining all of the properties for it as well as bringing up some functionality that you may not have known about.
Text Attributes
The …


Introduction to MapKit in iPhone OS 3.0 Part 2

December 22nd, 2009 Posted by: - posted under:Tutorials - 19 Comments
Screen shot 2009-12-22 at 11.48.05 AM

Back in September I posted a large post going over all the components required to implement the MapKit in your application. The MapKit is a framework introduced in iPhone OS 3.0 and allows developers to easily take advantage of Google’s mapping technology. In my first post I go over how to present a map as well as annotate the map with custom badges to highlight points of interest. The MapKit also …