Posts tagged as: beginner

Programmatically Getting a Screencapture of any UIView

July 27th, 2009 Posted by: - posted under:Snippets - 29 Comments

Introduction
Hey guys. This post is in response to a comment made in my last post about NSTimers. Techy asked if we could do a post on how to take screenshots programmatically using the iPhone SDK. For this minor project we will be creating a small web browser application that will start at www.google.com, and have a button on a toolbar at the bottom to take a picture of the web view and save …

READ MORE

NSTimer: The Poor Man’s Threading – Code Snapshot

July 23rd, 2009 Posted by: - posted under:Snippets - 34 Comments

Introduction
Hey guys. So usually the posts we put up here involve screencasts and presentations, but we are going to start also posting small less time consuming pieces for the site. Today I bring to you a small project involving NSTimers. Today we are going to build an app that represents a horse race. We will create a view with 6 small UIView squares with a blue background at the bottom of the screen, we will use a timer to move …

READ MORE

Objective C 2.0: An Intro – Part 2

June 29th, 2009 Posted by: - posted under:Tutorials - 30 Comments

Introduction
Hello everyone, welcome to my fourth screeencast. This is the second in my series introducing readers to Objective C. Let’s dive in.
Skill Level Beginner
Source Code


Screencast
I film myself coding out the entire sample project for each post. I personally think going through the Screencast is the best way to learn. But feel free to look through the slides and text if that suites you better.

READ MORE

Objective C 2.0: An Intro – Part 1

June 18th, 2009 Posted by: - posted under:Tutorials - 54 Comments

Introduction
Hello everyone, welcome to my second screeencast. This is going to be the first in a series of screencasts that are focused at people just beginning to work with Objective C and Cocoa. For many reasons the beginnings of learning cocoa development can be frusterating and lonely to a point. Only now is Objective C and Cocoa development gaining the kind of momentum to drive the creation of resources such as iCodeBlog and others.
Skill Level Beginner
This is not going to …

READ MORE

Custom UITableViewCell Using Interface Builder

May 24th, 2009 Posted by: - posted under:Tutorials - 112 Comments

Hey everyone, welcome to my first of many screencasts coming in the next few weeks. Today I am going to show you how to layout a UITableViewCell in Interface Builder and have a UITableView populate with those type of cells. I am adopting a new structure for my screencasts which will be 5 or so mintues of keynote slides giving background info followed by 20 – 25 mintues of step by step development. The entire video will be directly below …

READ MORE

iPhone Programming Tutorial – Animating a Ball Using An NSTimer

October 28th, 2008 Posted by: - posted under:Tutorials - 91 Comments

I have noticed recently many people wanting to create games for the iPhone and are unsure where to start. A common misconception is that you must use OpenGL ES to create any game with graphics. I am going to show you today how you can do some simple animation by moving a ball around the screen. We will not be using OpenGL ES to move the ball. We will simply be using an NSTimer and a …

READ MORE

iPhone Programming Tutorial – Using UITouch To Drag An Image Around The Screen

October 20th, 2008 Posted by: - posted under:Tutorials - 64 Comments

In this tutorial, I will be showing you how to use UITouch to get the location of where a user touches on the screen. We will be using this knowledge to drag a UIImageView around.
Learning how to use UITouch is the first steps in creating applications that are not navigation based (or don’t only use Apple’s built in components. Later on, we will begin some basic game development that will utilize UITouch.
You will need this image for the …

READ MORE

iPhone Programming Tutorial – Saving/Retrieving Data Using NSUserDefaults

October 3rd, 2008 Posted by: - posted under:Tutorials - 160 Comments

In this tutorial, I will be showing you how you can save and retrieve different types of data using the NSUserDefaults object. Saving this way is great for when you want to save small amounts of data such as High Scores, Login Information, and program state.
Saving to the NSUserDefaults is great because it does not require any special database knowledge. So if you don’t want/have an SQLite3 database for your app, this would be the way to go.
In …

READ MORE

iPhone Programming Tutorial – Populating UITableView With An NSArray

August 8th, 2008 Posted by: - posted under:Tutorials - 327 Comments

The goal of this tutorial is to show you how to populate a UITableView with data from an array of objects. This will be the building block to display XML data as well as SQL data.
The theme of this application will be fruit. We will create an array of “fruit” objects that have some additional information besides the name. We will populate a UITableView with the names of the fruits. When the user selects a fruit …

READ MORE

iPhone Programming Tutorial – Transitioning Between Views

August 3rd, 2008 Posted by: - posted under:Tutorials - 211 Comments

This tutorial will focus on transitioning from one view to another. We will be utilizing Apple’s UINavigationController. I will be using the code from the “Hello World” tutorial that I previously wrote. So if you have not completed it yet, go ahead and do it and come back to this page. (It’s quick I promise). You can view it here.
In this tutorial you will learn:

Add A …

READ MORE