Posts tagged as: objective-c

Using Method-Swizzling to help with Test Driven Development

August 8th, 2012 Posted by: - posted under:Articles » Tutorials - 1 Comment

In this blog post I will demonstrate how to mock HTTP requests using an Objective-C runtime dynamic method replacement technique known as method swizzling. I will show how this can be used in tandem with some unit test technologies to help with development of iOS web-service client side code.
In this example, the actual work of the HTTP request is embodied in my AsyncURLConnection class. It uses NSURLConnection to perform an NSURLRequest in an asynchronous manner, using completion handler blocks to return …


Adding Local Weather Conditions To Your App (Part 1/2: Implementing CoreLocation)

September 3rd, 2010 Posted by: - posted under:Tutorials - 29 Comments

Knowing the latitude and longitude of your users can open up all kinds of possibilities in your apps. In an upcoming post, we’ll be discussing how you can use your user’s location to determine their local weather conditions and forecast. But for now, we’re going to focus on Part 1 of this two part tutorial: CoreLocation.
Apple’s done a great job of abstracting GPS, Cellular Triangulation, and Wifi Access Point location lookups into CoreLocation; making it extremely easy to …


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 …


Objective C 2.0: An Intro – Part 2

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

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

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.


Objective C 2.0: An Intro – Part 1

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

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 …