This is part of an ELC Tech Network

Category Archives: iPhone Programming Tutorials

Screen shot 2010-07-29 at 11.28.46 AM

iPhone Programming Tutorial – Local Notifications

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.
Also posted in Featured | Tagged , , | 30 Comments
icon

How To Integrate Google Analytics Tracking Into Your Apps In 7 Minutes

So, why would you want to integrate Google Analytics into your iPhone application. Duh, for the same reasons you would integrate it into your site. Google has extended their killer analytics platform to include mobile devices including the iPhone and Android devices. The analytics API gives you some very powerful options to get as nitty gritty as you would like in your application tracking.
Also posted in Featured | Tagged , , , , , | 22 Comments
CYOAThumb

Pick Your Own Adventure iPhone Edition

A few days ago I came across this cool Pick Your Own Adventure game on Twitter from user Peretti. I decided to make a quick renewable application that used UIAlertViews and UIActionSheets to tell the story. We are going to implement the [...]
Also posted in Featured | Tagged | 7 Comments
iphone

iPhone Coding – Turbo Charging Your Apps With NSOperation

So, let’s face it, MANY applications in the app store are “Clunky”. They have jittery interfaces, poor scrolling performance, and the UI tends to lock up at times. The reason? DOING ANYTHING OTHER THAN INTERFACE MANIPULATION IN THE MAIN APPLICATION THREAD!

What do I mean by this? Well, I am essentially talking about multithreading your application. If you don’t know what is meant by multithreading, I suggest you read up on it and return to this post. Let’s dig in and I’ll give you an example of the problem.

Also posted in Featured | Tagged , , , , | 27 Comments
5683url

iPhone Coding Recipe – Shortening URLs

I had some a to shorten URLs for an in-application Twitter client I'm working on and thought I would share my simple solution with you guys. It's actually pretty straight forward and can be done in 1 line of code. I have broken it up into several for clarity.
Also posted in Featured, Recipes | Tagged , , | 14 Comments
1337_Cereal_by_Alaskara

iPhone Coding Recipe: Live Character Counter, Word filter, and 1337 Translator For A UITextField

I'm sure you have seen a Twitter client such as Twittelator Pro or Tweetie 2 count down the characters as you type your Tweet.  This is done by responding to the Editing Changed action on a UITextField.

 

Today, I will show you how you can implement this functionality in your application as well as show you some other real world examples of responding to this action.  Here are a few of the uses that we will discuss:

  • Countdown of characters allowed - Used when the user is limited by a certain number of characters
  • Word filter - useful in filtering out swear words or other unwanted text
  • Live translator - our example will translate english to 1337 :)

I will create the core code and show you how to modify it slightly to implement the other 2 applications.

Also posted in Recipes | Tagged , , , , | 14 Comments
UIAlertViewHack

UITextField – A Complete API Overview

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 [...]
Posted in iPhone Programming Tutorials | Tagged , , , | 14 Comments

iPhone Coding Tutorial – In Application Emailing

A lot of applications you see have an email button. When you click it then it will leave the application and take you to the Mail application. It can get really annoying leaving the application and then going back in [...]
Posted in iPhone Programming Tutorials | 33 Comments

iPhone Coding Tutorial – Inserting A UITextField In A UIAlertView

This will be a simple tutorial showing you how to put a UITextField in a UIAlertView. This is simple and just a couple lines if code. You will learn CGAffineTransform and coding UITextField programmatically. Heres a screenshots of what we [...]
Also posted in iPhone Game Programming | 32 Comments

iPhone Coding Tutorial – Creating an Online Leaderboard For Your Games

As you may have seen, there are quite a few services out there offering free leaderboards. These are great and all, but sometimes you want to have complete control over your data. I have put together a complete tutorial detailing step by step how you can create your own online leaderboard. This will also give you a very simple introduction to interfacing with web services.
Also posted in iPhone Game Programming | Tagged , , , | 36 Comments

iPhone Programming Tutorial – Local Notifications

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.
Also posted in Featured | Tagged , , | 30 Comments

How To Integrate Google Analytics Tracking Into Your Apps In 7 Minutes

So, why would you want to integrate Google Analytics into your iPhone application. Duh, for the same reasons you would integrate it into your site. Google has extended their killer analytics platform to include mobile devices including the iPhone and Android devices. The analytics API gives you some very powerful options to get as nitty gritty as you would like in your application tracking.
Also posted in Featured | Tagged , , , , , | 22 Comments

Pick Your Own Adventure iPhone Edition

A few days ago I came across this cool Pick Your Own Adventure game on Twitter from user Peretti. I decided to make a quick renewable application that used UIAlertViews and UIActionSheets to tell the story. We are going to implement the [...]
Also posted in Featured | Tagged | 7 Comments

iPhone Coding – Turbo Charging Your Apps With NSOperation

So, let’s face it, MANY applications in the app store are “Clunky”. They have jittery interfaces, poor scrolling performance, and the UI tends to lock up at times. The reason? DOING ANYTHING OTHER THAN INTERFACE MANIPULATION IN THE MAIN APPLICATION THREAD!

What do I mean by this? Well, I am essentially talking about multithreading your application. If you don’t know what is meant by multithreading, I suggest you read up on it and return to this post. Let’s dig in and I’ll give you an example of the problem.

Also posted in Featured | Tagged , , , , | 27 Comments

iPhone Coding Recipe – Shortening URLs

I had some a to shorten URLs for an in-application Twitter client I'm working on and thought I would share my simple solution with you guys. It's actually pretty straight forward and can be done in 1 line of code. I have broken it up into several for clarity.
Also posted in Featured, Recipes | Tagged , , | 14 Comments

iPhone Coding Recipe: Live Character Counter, Word filter, and 1337 Translator For A UITextField

I'm sure you have seen a Twitter client such as Twittelator Pro or Tweetie 2 count down the characters as you type your Tweet.  This is done by responding to the Editing Changed action on a UITextField.

 

Today, I will show you how you can implement this functionality in your application as well as show you some other real world examples of responding to this action.  Here are a few of the uses that we will discuss:

  • Countdown of characters allowed - Used when the user is limited by a certain number of characters
  • Word filter - useful in filtering out swear words or other unwanted text
  • Live translator - our example will translate english to 1337 :)

I will create the core code and show you how to modify it slightly to implement the other 2 applications.

Also posted in Recipes | Tagged , , , , | 14 Comments

UITextField – A Complete API Overview

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 [...]
Posted in iPhone Programming Tutorials | Tagged , , , | 14 Comments

iPhone Coding Tutorial – In Application Emailing

A lot of applications you see have an email button. When you click it then it will leave the application and take you to the Mail application. It can get really annoying leaving the application and then going back in [...]
Posted in iPhone Programming Tutorials | 33 Comments

iPhone Coding Tutorial – Inserting A UITextField In A UIAlertView

This will be a simple tutorial showing you how to put a UITextField in a UIAlertView. This is simple and just a couple lines if code. You will learn CGAffineTransform and coding UITextField programmatically. Heres a screenshots of what we [...]
Also posted in iPhone Game Programming | 32 Comments

iPhone Coding Tutorial – Creating an Online Leaderboard For Your Games

As you may have seen, there are quite a few services out there offering free leaderboards. These are great and all, but sometimes you want to have complete control over your data. I have put together a complete tutorial detailing step by step how you can create your own online leaderboard. This will also give you a very simple introduction to interfacing with web services.
Also posted in iPhone Game Programming | Tagged , , , | 36 Comments